Look at the following function header for a member function. void Circle:: getRa
ID: 3695470 • Letter: L
Question
Look at the following function header for a member function. void Circle:: getRadius() What is the name of the function? Consider the following class declaration: (3 points each) class Thing { private: int x; int y; static int z; public: Thing() {x = y = z;} static void putThing(int a) {z = a;} }; Assume a program containing the class declaration defines three Thing objects with the following statement. Thing one, two, three; How many separate instances of the x member exist?_____ How many separate instances of the y member exist?_____ How many separate instances of the z member exist?_____Explanation / Answer
5.The name of the function is getRadius()
Question 6:
a. No. of instances of x is 3
b.Number of Instances of y is 3
c.Number of Instances of z is 1 (because z is a static member of the class)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.