What Is A Super-class?

Last updated:9/18/2020 3:39:12 PM

2 Answers

Prakash nidhi Verma
Prakash nidhi Verma

A super-class is the basis of the class under consideration of a given class. The given class is defined as a subset of the super-class. Objects of the given class potentially posses all the characteristics belonging to objects of the super-class.

Arti Mishra
Arti Mishra

SuperClass

Superclass is those classes that extended by another class (sub class). It is also known as base classes or parent class. In other words you can say that “a class whose all properties and methods are inherited by subclass is known as superclass”. 

For Example

public class SupperClass

{

...........

.........

}

A new class (SubClass) can be created by extending all properties or methods of SupperClass.

public class SubClass extends SupperClass

{

............

.............

}


Answer