Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1116 :

Posted: Tue Mar 18, 2014 9:24 am
by shining_dragon
but I think "It calls the default 'no-args' constructor of the super class." is also not true at any times!

for example:

class Super{
Super () {} /// here we explicitly define constructor
}

class SubClass{
/// no constructor is defined here
}

When SubClassobject is created, it invokes the 'no args'(without default) constructor of the base class.

Re: About Question enthuware.ocajp.i.v7.2.1116 :

Posted: Tue Mar 18, 2014 12:19 pm
by admin
default here doesn't refer to the accessibility of the constructor but to the no-args constructor that is provided by default i.e. automatically. It has now been updated to make it clear.

thank you for your feedback!