• 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

Round-up question #34

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,
just a short question about the round-up game.
I just played and got a question (#34) which was


when an object is created using new(), its constructor will not complete until all constructors higher on the inheritance tree have completed.


I can see wut the purpose of this question is, BUT IMHO the answer has to be FALSE. Perhaps i read this question too carefully, but look at this

When you create ConstructorTest, implicit call to super() is made. This is fine, and i do not have problems with that. But that's all. Base(int) will not get called, but in the question you asked for all constructors higher in the inheritance tree....
Base(int) is also in the inheritance tree, or isn't it???
Hope you can give me an answer, so that i know how careful i have to read such questions....
cheers
Oliver
 
reply
    Bookmark Topic Watch Topic
  • New Topic