 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Hiding
exists like it does for C++ for data members
|
|
|
|
(fields)
|
|
|
| • |
But,
a derived class member function with the
|
|
|
|
same
name as a base class member function will
|
|
|
|
not
hide the base class’ member!
|
|
|
| • |
This
means that funciton overloading in Java works
|
|
|
between
classes in a hierarchy
|
|
|
|
– |
Which
is what we “wished” happened in C++!
|
|