Taken a subclass PipeLine based on a Vector the initializer in class Vector
would create a Vector object, not a PipeLine. Therefor instance variables
for class PipeLine are not availabe.
Do you really need that much subclasses? Besides, editing a ctor is often
not necessary. It calls the ctor of the baseclass by default. You only need
to initialize the instance variables of that specific class; otherwise,
leave the ctor out.
Regards,
Michael.
> Has anyone taken the approach of just forgetting about constructors in
> Java and instead using a conventionally-named initializer? I'm very,
[quoted text clipped - 3 lines]
>
> Cheers, Paul
Tom Dyess - 11 Mar 2005 01:53 GMT
> Taken a subclass PipeLine based on a Vector the initializer in class
> Vector
[quoted text clipped - 17 lines]
>>
>> Cheers, Paul
And you don't even need a constructor for that, you can do:
class Mine {
public String = "";
public HashMap = new HashMap();
}

Signature
Tom Dyess
OraclePower.com