What are the advantages of inheritance?

Answer Posted / sidhi.r

In OOPs, the concept of inheritance provides the idea of
reusability. This means that we can add additional features
to an existing class without modifying it.
This is possible by deriving a new class from the existing
one. The new class will have combined features of both the
classes.

Is This Answer Correct ?    213 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does enum stand for?

617


What is the renewal class?

2171


What is pure oop?

599


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

2172


What is the benefit of oop?

571






What is purpose of inheritance?

645


What are the 4 pillars of oop?

674


What is for loop and its syntax?

598


What is object and class in oops?

590


What is advantage of inheritance?

692


Advantage and disadvantage of routing in telecom sector

790


What is encapsulation in oop?

611


Explain the concepts involved in Object Oriented programming.

644


Can we create object of abstract class?

581


What are the 3 pillars of oop?

622