Lecture 15
10
Inheritance – two uses
•Put features common to different kinds of objects in an abstract superclass, often with abstract methods •Make a (small) change in the behavior of some object by extending its class and overriding a method
•