PPT Slide
public class DessertTest {
public static void main (String[] args) {
Dessert general = new Dessert("General",500);
System.out.println(general.nameOf() + ": " +
Cake acake = new Cake("Mike's Cake",800,
"German Chocolate","Chocolate");
System.out.println(acake.nameOf() + ": " + acake.cakeTypeOf()
+ " " + acake.caloriesOf() + " " + acake.frostTypeOf());
Cake bcake = new Cake("Darrell's Cake","Carrot");
System.out.println(bcake.nameOf() + ": " + bcake.cakeTypeOf()
+ " " + bcake.caloriesOf() + " " + bcake.frostTypeOf());
Mike’s Cake: German Chocolate 800 Chocolate
Darrell’s Cake: Carrot 0 none
Testing Desserts and Cakes