I am having a situation where sometimes the parameter sent to instantiate one of my classes is null. It is not, howver , calling the constructor I thought it would call. So, I made a test case and sure enough I am not getting what I thought.

I thought it would call the constructor that has no signature but it appears to call the double[] dArray constructor.

04-27-2007, 08:02 PM

pegitha

Overload selects the most specific constructor. I guess it is detemining that the double dArray constructor is the most specific. Maybe you should avoid all these overloads or at least make them more specific (i.e. do not use Object in that one).
p