Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Super Keyword in java:-

The parent class is also called Superclass in Java and this method is used to access the parent class method.

using this we can call the parent class method from the child class method.

Super is also used in the constructor to call parent class constructor to child class constructor.

Example of Super Keyword in java:-

public class A {
    int a=2;
     void fun()

public class B extends A {
    void fun1()

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post