GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about constructor" Watch "about constructor" New topic
Author

about constructor

wei liu
Ranch Hand

Joined: Dec 06, 2001
Posts: 56
i dont think the c of the chices is a correct ans,because a parent class constructor can only be invoked by using super oprator.am i right?
if you say i m wrong, would you give me an example?

6. Which of the following statements are true?
[a] Parent class constructors are not inherited to subclass
[b] Constructors can be overloaded but not overridden
[c] A parent class constructor can be invoked using this operator
[d] Any method may contain a call to this or super
Answer 6
[a] Parent class constructors are not inherited to subclass
[b] Constructors can be overloaded but not overridden
[C] A Parent Class Constructor Can Be Invoked Using This Operator
Arsho, Ayan
Ranch Hand

Joined: Nov 14, 2001
Posts: 60
<code>
You are right, Parent's Constructor cannot be invoked by keyword 'this'
----------------------------------------
</code>
 
GeeCON Prague 2014
 
subject: about constructor