• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

about constructor

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<code>
You are right, Parent's Constructor cannot be invoked by keyword 'this'
----------------------------------------
</code>
 
reply
    Bookmark Topic Watch Topic
  • New Topic