Help me Overriding in Java
please help my confuse hehehehe: want to create like this: Sample Input: 7 2 Sample Output: 49 12.566370614359172 The area of the square is 5*5=25, while the area of the circle is PI*2*2=12.566370614359172 the program like this: import java.util.Scanner; abstract class Shape { int width; abstract void area(); } //your code goes here public class Square extends Shape { public void area() { System.out.println(width*width); } } public class Circle extends Shape { public void area() { System.out.println( Math.PI*width*width); } } 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(); } } but the overriding code are always false.