Java.whats wrong with my code
import java.util.Scanner; abstract class Shape { int width; abstract void area(); } class Circle extends Shape { double pi = 3.14, ar; @Override public double area(int y) { super.area(); ar = pi * y * y; System.out.println("Area of circle:"+ar); } } class Square extends Shape { int ar; @Override public int area(int x) { super.area (); ar = x * x; System.out.println("Area of Square :"+ar); } } public class Program { public static void main(String[ ] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); Square a = new Square(x); Circle b = new Circle(y); a.area(); b.area(); } }