What is inheritance in java?

Report





Upload Image







Report Form



Question: What is inheritance in java?

Topics: java

Paste old question below.


Available Answers: 1


Answer #1#

15


In Java, it is possible to inherit attributes and methods from one class to another. Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. Inheritance is an important pillar of OOP(Object Oriented Programming). In the terminology of Java, a class which is inherited is called a parent or superclass, and the new class is called child or subclass. Java Inheritance: The process by which one class acquires the properties( instance variables) and functionalities of another class is called inheritance. In Java, it is possible to inherit attributes and methods from one class to another.

Report

Answered By:
Neysa

Neysa

El Paso, United States

Only Logged in users can post reply.


More Questions


Login


Lost Password!

Create Account

Wait Processing...