Exam (elaborations)
CPSC 1100 EXAM1 REVIEW (chapter 1, 2, and 3 self checks)
- Course
- Institution
Assume the class Circle has an accessor called getRadius and a mutator called setRadius. What is the output of the following code? Circle c1 = new Circle(3);Circle c2 = c1;Radius(4);Sln(Radius()); a. 3 b. 4 c. 8 d. 6 correct answer: b. 4 Which of the following statements about classes ...
[Show more]