Question: This is a JAVA question This is a main class & method These are the two sub classes There are errors: Main Class: 4 errors

This is a JAVA question

This is a main class & method

This is a JAVA question This is a main class & method

These are the two sub classes

These are the two sub classes There are errors: Main Class: 4There are errors:

Main Class: 4 errors

SuperClass Circle: 3 errors

SubClass Oval: 2 errors

What are they and how can they be fixed?

//Begin Class Midweek Week1 12 public class Midweek Weekii 13 14 15 //Begin Main Method public static void main (Stringt args) 17 18 19 20 21 /Instantiate instances of subclasses Circle cinew CircleO: oval oval new Cir(); //set value f r circle cir.setRadi (21.5) ; 23 24 25 26 27 28 29 30 31 32 //Output data called from subclasse System.out.printin ("Cizcle Characteristics") System.out.printf ("Radius: System.out.printf ("Azea: % .2 f ", cirsetRadl ( ) ) ; 2f ", cir. calculateArea ( ) ) ; //Set value f r oval oval.setRad2 (11.32): //Output data called from 3ubc1a3es System.out.println(noval ChazacteristICS System.out.printf ("Radius 1 System.out.printf ("Radius 2 System.out.printf ("Oval Area:.21m", oval.calculateArea (0): %.2E ", oval.getAad1()); 22 n",cir.getRad2 O) 34 35 36 37 38 39 40 } //End Cla 3Midweekweek11 41 //End Main Method

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!