[3248] in java-interest
Type and Overload resolution
daemon@ATHENA.MIT.EDU (Yuan Jiang)
Sat Nov 4 15:08:13 1995
From: Yuan Jiang <yjj@eng.umd.edu>
Date: Sat, 4 Nov 1995 13:27:32 -0500 (EST)
To: java-interest@java.sun.com
I thought Java enforces types strictly. Then I'm confused with the
method (or the smae name and number of parameters) overload
resolution scheme:
It uses a parameter-type conversion cost table to determine
"which matching method has the lowest type conversion cost."
Is this conversion an implicit casting? Isn't implicit casintg
only allowed when a subclass is casted to its mother class?
BTW, the quotation is from p15 of the Java Specification.
It's a very good document.
Yuan
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com