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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
shining_dragon
Posts: 14
Joined: Sat Mar 01, 2014 9:12 am
Contact:

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

Post 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.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest