May I know the error in this program.
import java.util.Scanner; import java.lang.Math; abstract class Shape { int width; abstract void area(); } //your code goes here public Class Square extends Shape { Square(int z){ int width = z; } void area (){ int A= width * width; System.out.println(A ); } } public Class Circle extends Shape { Circle(int w){ int width = w; } void area (){ double b = Math.PI *(width *width); System.out.println(b); } } 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(); } }