PPT Slide
Overloading vs. Overriding
?Overloading a method means providing
more than one method with the same name,
but different signatures.
?Overriding a method means replacing the
superclass’s implementation of a method
with one of your own, with an identical
Public class Cake extends Dessert {