Computer Applications

Differentiate between super class and target.

Encapsulation & Inheritance in Java

28 Likes

Answer

Super ClassTarget
It is the existing class from which new classes are derived.It is the class that inherits the data members and member methods from the Super Class.
It cannot use the data members and member methods of the target class.It can use the inherited data members and member methods of the Super Class.
It is also known as base class or parent class.It is also known as derived class or sub class.

Answered By

19 Likes


Related Questions