Method overriding
No. 220
Q: |
We consider the following inheritance hierarchy:
There is nothing wrong here syntactically. All classes do compile well and allow for e.g.:
However some code here is completely unnecessary.
|
||||||
A: |
|