interface area
{
public void area();
}
class pro41 implements area
{
int r;
public pro41(int side)
{
r=side;
}
public void area()
{
System.out.println("Area of circle is :=) "+(3.14*(r*r)));
}
public static void main(String...args)
{
pro41 obj=new pro41(5);
obj.area();
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.