What is inheritance?

Answer Posted / loga

Inheritance relationship among classes, where we can access
the base class variable and methods in the dervied class.
It has various type has multiple,multilevel,hybrid...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are abstract methods?

585


What are the various types of constructors?

608


What is ‘this’ pointer?

570


What is the benefit of using inheritance?

583


Explain method overriding.

597






Do we require a parameter for constructors?

550


Write a program to show the inheritance used in a class.

554


Can you call the base class method without creating an instance?

666


Can constructors be parameterized?

561


What is difference between encapsulation and abstraction?

568


What is the abstract method modifier?

587


Write a note about inheritance?

500


what are the different ways for a method to be overloaded?

533


Can we reduce the visibility of the inherited or overridden method ?

607


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

661