Tuesday, May 8, 2012

Constructors - super


Every object contains the instance variables of its class. What isn't so obvious is that every object also has all the instance variables of all super classes (parent class, grandparent class, etc). These super class variables must be initialized before the class's instances variables. 


No comments:

Post a Comment