posted 18 years ago
Hi ,I mam trying to compile this code &
i dont understand why its giving a comile time saying reference to met() is ambiguous.Doesnt compiler understand that 12 is in int so e.met(12) should call met(int a) in superclass
Also the same code works fine if we overload met() in class E
I dont understand how cum this code works now when methods are overloaded. Somebody please explain.
(added tags)
[ November 27, 2006: Message edited by: Barry Gaunt ]