File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes what really happens when an extended class object is created ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what really happens when an extended class object is created ?" Watch "what really happens when an extended class object is created ?" New topic
Author

what really happens when an extended class object is created ?

Richards Milan
Greenhorn

Joined: Jun 24, 2012
Posts: 29

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 >>


Do you know why Java programmers wear specs ? Its because they don't 'C#'
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what really happens when an extended class object is created ?
 
Similar Threads
Question about Garbage Collection
3 Questions
inheritance
Object Creation in inheritance
static method initialization