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.
About Question enthuware.ocajp.i.v7.2.1116 :
Moderators: Site Manager, fjwalraven
-
- Posts: 14
- Joined: Sat Mar 01, 2014 9:12 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1116 :
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!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 5 guests