 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Since
one of our primary goals with Java is to
|
|
|
perform
OOP
|
|
|
|
– |
We
always create inheritance hierarchies!
|
|
|
|
– |
In
fact, every class, unless otherwise requested, is
|
|
|
derived
from Java’s standard root class Object
|
|
|
|
– |
To
derive a class from a base class in Java means that
|
|
you
are “extending” it
|
|
|
|
class
list { //members}
|
|
|
|
public
class ordered_list extends list {
|
|
|
|
//more
members – replacing old, adding new }
|
|