Question: 1e. Consider the following code: 1. public class Circle { 2. private int radius; 3. private int x; private int y; 5. 6. public Circle(int

1e. Consider the following code: 1. public class Circle { 2. private int radius; 3. private int x; private int y; 5. 6. public Circle(int r) { 7. this.radius - r; 9. } 11. public double getArea() 12. 13. return Math.PI * radius *radius; 14. ) 15. 16. 17. public String toString(int n) { 18. return X+ + radius; 19. } 20. 21. // The rest of the code for the Circle class 22. 11........ 23.) Assume that a Circle object ct is already created with a radius of 24. What is the result of of the following statement System.out.println(c1); O A This is a syntax error OB.00 24 OC. This is a run time error O D. The address of the Circle object O E Circle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
