Trying to define some instance variables.

Need to define instance variables for quarters, dimes, nickels and pennies. All with an integer representing the number of them.

Any idea how I would go about this?

Printable View

- 11-16-2011, 04:00 PMTriSBRInstance Variables
Trying to define some instance variables.

Need to define instance variables for quarters, dimes, nickels and pennies. All with an integer representing the number of them.

Any idea how I would go about this? - 11-16-2011, 04:13 PMFubarableRe: Instance Variables
Please have a look at the tutorial on using primitive data types and variables: Primitive Data Types.

The whole tutorial is a wonderful resource, one I encourage you to use and learn from, and you can find the link to it here: Java Tutorial: Really Big Index.

Good luck! - 11-16-2011, 04:16 PMTriSBRRe: Instance Variables
Thanks. That actually helps alot.