Inheritance is the ability for a class to inherit properties and behavior from a parent class by extending it, while Containership is the ability of a class to contain objects of different classes as member data.
What is containership explain its type How does it differ from inheritance?
The main difference between inheritance and containership is that inheritance allows using properties and methods of an existing class in the new class while containership is another name for composition that describes the ownership between the associated objects. ... In other words, objects are created using classes.
What do you mean by containership?
: a ship specially designed or equipped for carrying containerized cargo.