Question: what is the difference between inheritance and containership?
Answer: 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.