posted 12 years ago
Hi Lynn. As far as I can tell, there is no need to redeclare all the methods in the two subclasses. The subclasses shouldn't change anything about their implementation. SugarySnack and SaltySnack are just empty (one could say useless) subclasses.
Do you know how to make instances of a class? For instance, you could declare a variable "crisps" and assign to it a new instance of the class SaltySnack, supplying a name, caloric value and cost to the constructor.