java shape class
My code fails at the third locked test case and I can't view it. What is the problem? It contains three classes (Shape, Square, and Circle) and we need to calculate the area of each shape. This is the link to code: https://code.sololearn.com/cvE90UeATprg This is the whole code: import java.util.Scanner; abstract class Shape { int width; abstract void area(); } class Square extends Shape{ public Square (int width ){ super.width =width; } public void area(){ System.out.println((int)Math.pow(super.width ,2)); } } class Circle extends Shape { public Circle (int width){ super.width =width; } public void area(){ System.out.println( Math.PI*Math.pow(super.width ,2)); } } 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(); } } Which one is correct? super.width or this.width