ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is meant by Inheritance ?

Definition 1:

Java Inheritance defines an is-a relationship between a superclass and its subclasses. This means that an object of a subclass can be used wherever an object of the superclass can be used. Class Inheritance in java mechanism is used to build new classes from existing classes.

Definition 2:

Inheritance means to acquire property of others. It also means that we can use code of other functions and methods. Means Code reusability. In this object are defines by classes that are super class and which classes uses property of that class is known as sub class. It is very useful in Object Oriented Languages.

base class :

Base class is the most generalised class in a class structure. Most applications have such root classes. In Java, Object is the base class for all classes.

Superclass :

Superclass is a class from which another class inherits.

Related Posts Plugin for WordPress, Blogger...
Flag Counter