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 |
What are a base class, subclass, and superclass?
What is a default method? Why do we need default methods in java 8 interfaces?
What do you mean by operator overloading?
How can we call the base method without creating an instance?
Difference: Sequence Diagrams, Collaboration Diagrams ?
What is the main difference between a class and an object?
What are the problems faced by the developer using object oriented programming language?
What is the use of ‘finalize’?
What is the difference between static and dynamic Classificaition.Give some examples.
1 Answers InfoAxon Technologies, Protech, Wipro,
What is inheritance in java?
What are the different types of arguments?
What is ‘this’ pointer?