What classes will you need for a Java program representing a Lemonade Stand?
What attributes will each class need?
What methods will each class need?
Please write it on your blog as follows:
Class A
Attributes
Methods
Class B
Attributes
Methods
So on...
Subscribe to:
Post Comments (Atom)
1 comment:
Lemonade Stand- Class Brainstorming
by Adam Witlin, Jonathan Broche, and Emmanuel Franco
Lemonade Stand
Class A - Lemonade Class //keeps track of all the lemonade
Attributes
NumberofLemons
Methods
getnumberoflemons
setnumberoflemons
Class B - Money Class //keeps track of all the money
Attributes
TotalamountofCash
Methods
getamountofcash
setamountofcash
Post a Comment