How are this() and super() used with constructors?
this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor. SuperThisDemo.java class SuperClass { int p; public SuperClass(){ System.out.println(“Super Class”); } public SuperClass(int a) {...
Recent Comments