class Sub extends Base{ Sub(){ System.out.println("Sub constructor with no argument called."); System.out.println(" Instance variable base has value " + base + "."); } Sub(int b){ System.out.println("Sub constructor with argument " + b + " called."); System.out.println(" Instance variable base has value " + base + "."); } void applyMethod(){ System.out.println("Method from Sub class applied."); } }