PPT Slide
What protected Really Means
Each class that extends Dessert inherits calories.
Code in the Cake class can access calories only
through a reference to a type that is a Cake or
Code in the Cake class cannot access the calories
field of a Scone or a Pudding or a generic Dessert.
Note: protected static fields can be accessed in