code
---------------------------------
class
Test {
public static void render(Shape s, Circle c)
{
System.out.println("render(Shape s, Circle c)");
}
public static void render(Circle c, Shape s)
{
System.out.println("render(Circle c, Shape s)");
}
}
----------------------------------
code
I expect this code to throw a duplicate method found compilation error?But its not throwing?I removed the arguments to both the functions and it immediatrely throws compiler error.Can anybody help me in this
[ September 10, 2008: Message edited by: abin joy ]