Robert Godfrey

Greenhorn
+ Follow
since Aug 11, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Godfrey

Thanks for the link, Rovas. As the thread points out, you can cast null to a specific type in order to invoke a specific constructor which is reasonable. However when you just pass null, what's the rational for the compiler selecting the class B constructor (i.e. the most specific class) rather than the Object constructor?

Thanks Rob
17 years ago
Does anyone know why in the following code example the overloaded constructor taking a class B argument gets called when a null argument is called rather than either of the other 2 constructors?



Thanks Rob
17 years ago