2 ms·
I think people make mistakes in the architectural design part, often attempting to object-orient things that are not related in the strict way inheritance impli
by calinet6 12y ago
I think people make mistakes in the architectural design part, often attempting to object-orient things that are not related in the strict way inheritance implies.
So, put more simply, don't make an Animal class if you have a Cow and a Tree, or you might end up treating legs and trunks the same. It should be no surprise, then, that bad things happen.
This is not the fault of the concept of inheritance, it is a fault in your thought process and the resulting design.