Relating Constructor of Super Class in java -
if create object of sub-class no constructors, know compiler implicitly provide default constructor. if create constructor in sub-class , try access super class constructor using super keyword, and, now, super class has no constructor in it. compiler provide default constructor super class well?
yes, if there no specified constructor, there default empty constructor
Comments
Post a Comment