the Child1 will call a lot of ChildX classes, so do you think I should extend to all classes?
If you want to use it then yes
A good practice is to provide class diagram (google "uml class diagram") for your hierarchy. Or use such names where type hierarchy is obvious, like Animal, Reptile, Mammal, Dog, Cat, Lizard. This way you leave no place for any ambiguaty and maximize the chance that you question would be answered, and learn to do it more professional
Обсуждают сегодня