what is containership?how does it differ from inheritance?
Answers
Answered by
1
i hope this is your answer . I found from google..
Attachments:
ananddevi:
ya it was useful thank you raftar^_^
Answered by
1
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. ... Inheritance represents an “is-a” relationship in OOP, but Containership represents a “has-a” relationship.
hope helps ☺️☺️☺️
hope helps ☺️☺️☺️
Similar questions