3 ms·
> 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 its
by masklinn 4y ago
> 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.