Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what really happens when an extended class object is created ?

 
Richards Milan
Greenhorn
Posts: 29
Android Java Mac
  • Mark post as helpful
  • send pies
  • 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 >>
 
Campbell Ritchie
Sheriff
Posts: 48635
56
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic