|
|
|
|
|
by andresmanz
3959 days ago
|
|
Well, they do, kind of. Just that multiple inheritance is only allowed with the use of interfaces. In C++ multiple inheritance is supported, and interfaces are actually pure virtual abstract base classes. And that's what interfaces in Java (and C#, I think) are, just with the addition of some compiler checks for interfaces. Please correct me if I'm wrong, though. I seldomly use mutiple inheritance in any language, and instead prefer composition. |
|