About Question enthuware.ocajp.i.v7.2.1116 :
Posted: Tue Mar 18, 2014 9:24 am
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.
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.