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 / krish

fine all the above answers saying inheritance is mainly used to reusing the code so development time reduses.ok fine

to reuse the already created class we can use reference of that class directly. then why we go for the inheritance?.

i think by using object references complexity will increases.It creates confusion to users.
and by creating reference another object is created. so memory wastage here.

i don't know exactly .....If there r any answers please post.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can inline function declare in private part of class?

4306


What are oops functions?

965


What is the renewal class?

2692


What is the main feature of oop?

1101


What is persistence in oop?

1097


What is polymorphism what are the different types of polymorphism?

949


What are the advantages of polymorphism?

978


What is an example of genetic polymorphism?

1119


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

2078


Why is static class not inherited?

1048


What is oops with example?

999


What is abstraction oop?

1030


Is data hiding and abstraction same?

971


What is class in oop with example?

1043


What is polymorphism and example?

982