• 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

what really happens when an extended class object is created ?

 
Greenhorn
Posts: 29
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider a class named "subClass" which is an extension of class "superClass" , now when the "subClass" object is created the "superClass" constructor is also called !! any explanation >>
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Find a copy of Head First Java (2nd edition) by Kathy Sierra and Bert Bates. Go through the chapter starting on page 235. See, all there, nice and easy to understand.
Find a copy of the Java Language Specification, and I think you want §12.4 or §12.5. See, all there, really difficult to understand.
reply
    Bookmark Topic Watch Topic
  • New Topic