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 are the advantages of inheritance?

Answer Posted / sudhir kumar

The main advantage of the inheritance is that we can acheive
encapsulation because there is early binding in inheritance.
Means our derived class object is already fix to all
appropriate classes functions. And encapsulation is so
because any body do not know that what are the names of base
classes and their information.

And as every one knows Reuseability....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is polymorphism achieved?

1055


What is byval and byref? What are differences between them?

2212


What is destructor in oop?

1026


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2386


What is variable example?

1034


What is the advantage of oop over procedural language?

1084


What is polymorphism give a real life example?

1034


What is multilevel inheritance explain with example?

1145


Can we create object of abstract class?

1090


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2534


What is constructor in oop?

1105


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2148


How do you achieve polymorphism?

1075


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


Which is better struts or spring?

1052