> A base class "doesn't know" what its derived classes are.
There's a high variability in that, especially when metaclasses get involved and inheritance is itself a protocol (and thus can be hooked into every which way).
I do agree with the rest of your comment though, to me it also makes a lot more sense for a derived class to point to its parent than the reverse.
"derived class actively "points to" its base class"
That make sense - pretty much every language I've used that supports inheritance class definitions refer to the class (or classes) they extend rather than the other way about.
Re:UML: My Part in Its Downfall
by Ensorceled on Tuesday October 04, 2022 @06:45AM
(#33078586)
I like it ...
class Vehicle extendedBy Car, Truck
class Car
class Truck extendedBy Semi
class Semi
This would be almost as awesome as "comefrom"[1]
Looks like sealed classes in Java https://www.baeldung.com/java-sealed-classes-interfaces
So in my mental model a derived class actively "points to" its base class. Likewise a child commit points to its parent/parents.