2 ms·
That's not inheritance. That's polymorphism. Java doesn't let you have inheritance without polymorphism, but it is possible, see "private inheritance" in C++.
by TheCoelacanth 6y ago
That's not inheritance. That's polymorphism.
Java doesn't let you have inheritance without polymorphism, but it is possible, see "private inheritance" in C++.