Indicate whether the following statements using the Circle class in Fig. 2.34
in Sect. 2.11 are syntactically correct or incorrect. If incorrect, indicate what is
wrong with the statement:
*A. Circle circle ¼ new circle();
B. Circle circle
Circle ¼ new Circle(5);
*C. circle.getRadius(); assume that an object circle has been
declared and created correctly.
D. circle.setRadius("two"); assume that an object circle has
been declared and created correctly.
E. circle.setRadius(); assume that an object circle has been
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here