What is inheritance?

Answer Posted / senthilkumar

one object acquires the properties of the another object.


a class is existing the base class.


a class is derived from base class.

subclass access the function and data of the base class.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax of object oriented method call?

551


If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

512


What is meant by function overloading and function overriding?

590


What are different ways to create string object?

567


Is it possible to provide method implementations in java interfaces? If possible, how do we provide them?

520






What are Classes and Objects?

574


Differentiate between an abstract class and an interface?

554


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

556


Difference between class and an object?

579


What is the practical implementation of inner classes?

521


Define modularity?

657


What is the benefit of using inheritance?

581


Can you explain primordial class loader?

493


What is a final variable?

591


What is the difference between an interface and abstract class?

574