What Is A Super-class?

Total Post:57

Points:285

Java 
 324  View(s)
Ratings:
Rate this:
  1. What Is A Super-class?

    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.

  1. What Is A Super-class?

    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