Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between containership and inheritence?

Answer Posted / sandeep choudhary

inheritance is the ability for a class to inherit of
properties and the behavior from a parent class by extending it.

while containership is the ability of a class to contain the
another objects as member data.

if a class is extended, it inherits all the public and
protected properties and the behaviors and those behavior
may be overridden by the sub class.but if a class is
contained in another, container class does not have the
ability to add and modify of contained.

Is This Answer Correct ?    47 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats is abstraction in oops?

1070


How to use CMutex, CSemaphore in VC++ MFC

4778


Explain virtual inheritance?

1199


Is abstract thinking intelligence?

1047


Can you inherit a private class?

1101


Can we define a class within the interface?

1036


What is the importance of oop?

1094


What is encapsulation selenium?

1002


What is difference between abstraction and encapsulation?

1073


What is polymorphism explain?

1253


Explain the concepts involved in Object Oriented programming.

1225


What are properties in oop?

1080


Can destructor be overloaded?

1030


What are objects in oop?

1100


What is the fundamental idea of oop?

1134