Computer Science, asked by ananddevi, 1 year ago

what is containership?how does it differ from inheritance?

Answers

Answered by raftaar22
1
i hope this is your answer . I found from google..
Attachments:

ananddevi: ya it was useful thank you raftar^_^
raftaar22: ye...
raftaar22: you are from
ananddevi: Chennai
Answered by Anonymous
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 ☺️☺️☺️
Similar questions