Question: It keeps saying theres an error in my code and Im sure why. Theres pictures of my code and then theres the requirements Outline TestRectangle1
Outline TestRectangle1 class Rectangle // instance variables double width double height; //default constructor 9 public RectangleC) 10 .0.1 (9.0.1 width 1.0 12 height-1.0 5 16 //paraneterized constructor public Rectangle(double width, double height) this.width-width; this height height 18 19 0 public double getArea 21 22 return width*height 23 24 public double getPerineterO 25 26 27 28 29 class Test return 2 (widthsheight): 31 32 public void main(String args) En Markers-Properties as servers Data Source Explorer b snippets -Consoles cterminateds testbreak [Java Application) /LibrarylJava) JavaVistualMachines/jdk-9.0.1.Jdk/Contents/Home/bir/java (Mar 8, 2018, 409:17 Exception in thread "noin- java "lang-Error: uresolved corpilation problen: at testbreak, testbreck,main(testhreak.java:4) Writable Smart Insert 40:2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
