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?
The variable calories in class Dessert is not accessible from