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 / awais zahur

inheritance has two main advantages:
1.extendability
we can extend the already made classes by adding some new
features.
2.maintainability
it is easy to debug a program when divided in parts.
inheritance provides an opportunity to capture the problem

Is This Answer Correct ?    80 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism oop?

1065


What is destructor give example?

1051


What is use of overloading?

1147


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2554


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

6679


any one please tell me the purpose of operator overloading

2399


What is class and example?

1186


What are the important components of cohesion?

1026


can inline function declare in private part of class?

4412


What is polymorphism in oops with example?

1056


What is methods in oop?

981


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2464


What are functions in oop?

1056


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

2542


What is the diamond problem in inheritance?

1138