Question: Time left 0:58:10 Identify and fix the errors of the below code (there are 5 errors, if you don't write the correct form you CAN

 Time left 0:58:10 Identify and fix the errors of the below

Time left 0:58:10 Identify and fix the errors of the below code (there are 5 errors, if you don't write the correct form you CAN NOT GET ANY CREDIT). 4 6 7 8 9 1 public class Question { 2 public static void main(String[] args) { 3 Rectangle c = Rectangle(4,20); } 5} class Shape { int size; public shape(int size) { size = size; 10 11 public string tostring(){ 12 return "Size of the shape is:" + size; 13 } 14 } 15 class Rectangle extends Shape extends object { 16 int length; 17 public Rectangle(int s, int length) { 18 super(); 19 this.length length; 20 21 @Override 22 public String tostring(){ 23 return tostring()+ " Length of the rectangle is:" + length; 24 } 25 }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!