Henry Wong wrote:
Yeah, quite frankly, I never understood the restriction -- as it can be easily circumvented via a getter method. Obviously, the instance variables exists at the call, and they have default values.
Henry
Not in the super() or this() call, eg super(getId()). That won't compile.
Yes, if you have an abstract method which the supertype calls in its constructor. But then that's considered a no no anyway.
Frankly I'm not concerned as passing a subtype's attributes into a supertype strikes me as just plain wrong.