[2580] in java-interest
Problems with Method names
daemon@ATHENA.MIT.EDU (Srinivas R. Gaddam)
Thu Oct 5 02:25:24 1995
From: sreenu@actor.cs.vt.edu (Srinivas R. Gaddam)
To: java-interest@java.sun.com
Date: Thu, 5 Oct 1995 00:45:03 -0400 (EDT)
Hello,
Im having problems with method resolution in a sub-class.
public class A {
public void
meth(someType) { code here }
}
public class B extends A {
public void
meth(someOtherType) { code here }
}
The compiler generates an error saying ambiguous methods since the two
methods have the same name but different signature.
Is this NOT allowed in Java?
Thanks
--
Sreenu
=====================>>>>>>>>>>>><<<<<<<<<<<<<<<=============================
SRINIVAS R. GADDAM
Home Office
---- ------
1200 Snyder Lane 555N, McB, Virginia Tech
Apt. # 900F Computer Science Dept.
Blackburg, VA, 24060 Blacksburg, VA, 24061
540-961-0135 540-231-5853
http://csgrad.cs.vt.edu/~sreenu/
=====================>>>>>>>>>>>><<<<<<<<<<<<<<============================
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com