What is inheritance in java?

Answer Posted / nashiinformaticssolutions

In Java, inheritance refers to the idea that a class's properties can be passed down to another class. It facilitates code reuse and builds connections between various classes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor and virtual function? Can we call virtual funciton in a constructor?

777


State some of the advantages of object oriented programming?

834


Explain about instance in object oriented programming?

752


What do you mean by abstract classes?

722


What is the abstract method modifier?

781


What are inner classes and what is the practical implementation of inner classes?

668


How many methods do u implement if implement the serializable interface?

708


Are constructors inherited? Can a subclass call the parent's class constructor? When?

746


How many methods are there in the serializable interface?

722


How do we implement serialization actually?

693


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

888


Differentiate between an abstract class and an interface?

730


Can you create an instance of an abstract class?

741


Differences between functional programming and object-oriented programming?

712


What are all the languages which support oop?

714