• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic