Please I need help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Please I need help

import java.util.Scanner; abstract class Shape { int width; abstract void area(); } //your code goes here 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(); } }

1st May 2022, 8:59 AM
Micheal Mfon
Micheal Mfon - avatar
1 Answer
+ 5
This is the given code. Where is your own code?
1st May 2022, 9:23 AM
Lisa
Lisa - avatar