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.

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