If setRadius is a Circle class function and myCircle is a Circle object, which of the following statements would set myCircle's radius to 2.5?
A) myCircle.setRadius(2.5) ;
B) setRadius(2.5) ;
C) Circle.setRadius(2.5) ;
D) Circle(setRadius(2.5) ) ;
E) None of the above
Correct Answer:
Verified
Q17: A structure variable is similar to a
Q18: When an object or structure variable is
Q19: If Square is the name of a
Q20: A constructor must have the same name
Q21: If employee is an instance of a
Q23: member function may be called by a
Q24: In C++ and other object-oriented programming languages,
Q27: When three different objects of a particular
Q33: An Abstract data type (AD
T) is a
Q38: A constructor is a public class function
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents