What's the benefit of using inheritance?



What's the benefit of using inheritance?..

Answer / Neeraj Kumar Tripathi

Inheritance allows a new class to reuse, extend, and modify the properties and behaviors of an existing class. It promotes code reuse, reduces redundancy, improves modularity, and facilitates the creation of hierarchical class relationships.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

What are a base class, subclass, and superclass?

1 Answers  


What is a default method? Why do we need default methods in java 8 interfaces?

1 Answers  


What do you mean by operator overloading?

1 Answers   BirlaSoft,


How can we call the base method without creating an instance?

1 Answers  


Difference: Sequence Diagrams, Collaboration Diagrams ?

2 Answers   Protech,


What is the main difference between a class and an object?

1 Answers  


What are the problems faced by the developer using object oriented programming language?

1 Answers  


What is the use of ‘finalize’?

1 Answers  


What is the difference between static and dynamic Classificaition.Give some examples.

1 Answers   InfoAxon Technologies, Protech, Wipro,


What is inheritance in java?

3 Answers  


What are the different types of arguments?

1 Answers  


What is ‘this’ pointer?

1 Answers  


Categories