What is the ouput of the following Java program?
interface A{
double pi=3.14;
public double Area(int r);
}
class C implements A
{
double pi=3.1;
public double Area(int r)
{
return(pi*r*r);
}
}
public class test
{
public static void main(String[] args)
{
C c=new C();
System.out.println(c.Area(2));
}
}
Reveal answer
Fill a bubble to check yourself