class Base { public Base() {System.out.print("Base");} } public class Derived extends Base { public Derived() {this("JavaChamp"); System.out.print("Derived");} public Derived(String s) { System.out.print(s);} public static void main(String[] args) { new Derived(); } }
public Base() {System.out.print("Base");}
}
public class Derived extends Base {
public Derived() {this("JavaChamp"); System.out.print("Derived");}
public Derived(String s) { System.out.print(s);}
public static void main(String[] args) {
new Derived();
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.