Specifications

Sun Services
Java™ Programming Language
Module 6, slide 32 of 43
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Constructor and Initialization Examples
0 Basic initialization
0.1 Allocate memory for the complete Manager object
0.2 Initialize all instance variables to their default values (0 or null)
1 Call constructor: Manager("Joe Smith", "Sales")
1.1 Bind constructor parameters: n="Joe Smith", d="Sales"
1.2 No explicit this() call
1.3 Call super(n) for Employee(String)
1.3.1 Bind constructor parameters: n="Joe Smith"
1.3.2 Call this(n, null) for Employee(String, Date)
1.3.2.1 Bind constructor parameters: n="Joe Smith", DoB=null
1.3.2.2 No explicit this() call
1.3.2.3 Call super() for Object()
1.3.2.3.1 No binding necessary
1.3.2.3.2 No this() call
1.3.2.3.3 No super() call (Object is the root)
1.3.2.3.4 No explicit variable initialization for Object
1.3.2.3.5 No method body to call