Compile time hierarchy of encapsulation that matches the domain model == oops inheritances(class inheritance structure directly mirrors the real-world concepts and relationships of the problem you are trying to solve) is bad and try to avoid it.
Compile time hierarchy of encapsulation that matches the domain model == oops inheritances(class inheritance structure directly mirrors the real-world concepts and relationships of the problem you are trying to solve) is bad and try to avoid it.