PPT Slide
public class Cake extends Dessert {
private String frostType;
public Cake(String cakeNameOf) {
public String cakeTypeOf() { return cakeType; }
public String frostTypeOf() { return frostType; }
Can a private field of the parent class
be changed by a subclass?
Variable calories in class Dessert not accessible from