yes, but it also says
If the parent has no constructor (Object does have one), the compiler will reject the program.
in my code, the parent of MySub is Test3, and Test3 doesn't have a constructor.
so i thought my compiler would reject the program.
but did Test3's parent class, Object's constructor get called?
in that case, how can it happen that "a parent has no constructor"?
every class is a subclass of Object, so the "call parent's constructor if class doesn't have one" will eventually reach Object.
or is it the case that if a class has a constructor with parameters, they won't have a no-argument constructor?
so if Test3 has a constructor constructor with arguments, i WILL get an error?
UPDATE
i tried this, and got
Exception in thread "main" java.lang.NoSuchMethodError: Test3: method <init>()V
not found
at MySub.<init>(MySub.java:1)
at Test4.main(Test4.java:4)
is this telling me that it can't find the constructor?