What's the OO principle that states (in sum):A base object should have no knowledge of its subtypes.I thought it was Liskov Substitution but after reading that wikipedia article I don't believe I'm correct. Thanks in advance!
Base class should have no knowledge of its subtypes?
design patterns;object oriented;inheritance
This probably comes under dependency inversion.The parent is a higher level abstraction than its child so it cannot be dependant on the child's implementation. It cannot know that a lower level abstraction exists or else it would by definition be dependant on it..