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

What is this pointer in oop?

1129


What is an interface in oop?

1093


What are the three parts of a simple empty class?

2098


Why do we use oop?

1171


Why is polymorphism used?

1092


What is oops and its features?

1153


What are the two different types of polymorphism?

1199


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1695


Why is object oriented programming so hard?

1134


How to improve object oriented design skills?

1069


What is a class and object?

1112


What is class encapsulation?

1147


What is polymorphism in oop example?

1076


What is polymorphism used for?

1112


Can we override main method?

1286