• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about constructor

 
wei liu
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<code>
You are right, Parent's Constructor cannot be invoked by keyword 'this'
----------------------------------------
</code>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic