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

Features or Advantages of Inheritance:

---Reusability:

Inheritance helps the code to be reused in many
situations. The base class is defined and once it is
compiled, it need not be reworked. Using the concept of
inheritance, the programmer can create as many derived
classes from the base class as needed while adding specific
features to each derived class as needed.

---Saves Time and Effort:

The above concept of reusability achieved by inheritance
saves the programmer time and effort. Since the main code
written can be reused in various situations as needed.

---Increases Program Structure which results in greater
reliability.

www.hamidraza.page.tl

Is This Answer Correct ?    121 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why multiple inheritance is not allowed?

1161


What is polymorphism in oops with example?

1057


Why do we use polymorphism?

1089


Why is oop useful?

1111


Why polymorphism is used in oops?

1054


write a C++ program for booking using constructor and destructor.

2547


What is a class in oop?

1135


What is encapsulation in oops?

1016


write a program that takes input in digits and display the result in words from 1 to 1000

2432


c++ program to swap the objects of two different classes

2422


What is oops concept with example?

1032


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6681


Can we create object of interface?

1136


What are constructors in oop?

1185


What are benefits of oop?

1138