Example: bankruptcy
Search results with tag "Inheritance and class hierarchies"
Inheritance and Class Hierarchies
www.compsci.hunter.cuny.eduThe derived class has access to all public and protected members of the base class. Public inheritance expresses an is-a relationship: a B is a particular type of an A, as a car is a type of vehicle, a manager is a type of employee, and a square is a type of shape.