Question: Question Four 1.5 Marks Learning Outcome(s): Consider the following java class: public class Circle { private double radius; private String color; LO3: Demonstrate Integrated Development

 Question Four 1.5 Marks Learning Outcome(s): Consider the following java class:

Question Four 1.5 Marks Learning Outcome(s): Consider the following java class: public class Circle { private double radius; private String color; LO3: Demonstrate Integrated Development Environment (IDE) for the editing, building, debugging, and testing of programs. public Circle() { radius=0; color = "red"; } public circle (double r, String c) { radius=r; color = C } public void setColor (String c) { color = C; } public double getRadius ) { return radius; } public String getColor() { return color; } LO4: Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays. Write a Tester class named Circle Tester which contains the following instruction: 1. Use the first constructor to create a circle object c1. 2. Use the second constructor to create a circle object c2 where radius =15, color = "Green". 3. Use the setcolor method to change the color of the circle c1 to "Yellow". 4. Print the radius and color of circle c2. Note: Include the screenshot of the program output as a part of your answer. Otherwise, you will be marked zero for this

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!