What is the output of running class C? class A { public A() { System.out.println(The default constructor
Fantastic news! We've Found the answer you've been seeking!
Question:
What is the output of running class C?
class A {
public A() {
System.out.println("The default constructor of A is invoked");
}
}
class B extends A {
public B() {
System.out.println("The default constructor of B is invoked");
}
}
public class C {
public static void main(String[] args) {
B b = new B();
}
}
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date: