What are the advantages of inheritance?

Answers were Sorted based on User's Feedback



What are the advantages of inheritance?..

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

What are the advantages of inheritance?..

Answer / parul.kataria007@gmail.com

by inheritance,we can create a link b/w the inherited class....

such that if we inherit class B from an existing class A and C from B,then we can use A and C together by inheritance... ennie

Is This Answer Correct ?    0 Yes 0 No

What are the advantages of inheritance?..

Answer / gunjan jain

1.re-usability
2.consumes less time(less efforts)
3.increase reliablity.
4.easy debugging
5.data hiding(using private,protected modes)..

Is This Answer Correct ?    0 Yes 0 No

What are the advantages of inheritance?..

Answer / sarmistha nayak

codereusebility

Is This Answer Correct ?    0 Yes 0 No

What are the advantages of inheritance?..

Answer / tanis

Hi guys, I recently attended one interview and the
interviewer was a sarky, crack and he thinks that he is a
geek... i gave all the explanation what you have written
abv and nothing could convince him. I also told him that we
can hide the implementation by putting it in a separate
dll, or unicode file but in vain...

Is This Answer Correct ?    18 Yes 22 No

What are the advantages of inheritance?..

Answer / mr manu

Sathyayittum enikk ariyyilla...................

Is This Answer Correct ?    22 Yes 57 No

Post New Answer

More OOPS Interview Questions

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 Answers  


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


class type to basic type conversion

0 Answers  


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

0 Answers  






swapping program does not use third variable

5 Answers   TCS,


What is command routing in MFC

1 Answers   GE,


what is the new version of oops

0 Answers   Ignou,


2. Give the different notations for the class.\

0 Answers  


What is abstrac class?where is it use?

2 Answers  


Program to print 0 to 9 in cross order

3 Answers  


What is overriding vs overloading?

0 Answers  


Categories