Question: Look at the follow ing function header for a member function . void Circle :: getRadius(} What class is the function a member of? Question
Look at the follow ing function header for a member function . void Circle :: getRadius(} What class is the function a member of?
Question 17 options:
|
|
Question 18 (4 points)
What is n mutator function (setters)?
Question 18 options:
|
|
Question 19 (4 points)
What is an accessor function (getters)?
Question 19 options:
|
|
Question 20 (4 points)
Why do we write setters and getters for data items?
Question 20 options:
|
|
Question 21 (4 points)
define a member function header (outside the class definition) that is named setWidth member of the rectangle class returns nothing takes a double parameter named w
Question 21 options:
|
|
Question 22 (4 points)
define a member function header (outside the class definition) that is named getWidth member of the rectangle class returns a double takes no parameters the function cannot change any values in the class
Question 22 options:
|
|
Question 23 (4 points)
what is the general systax of a member function header?
Question 23 options:
|
|
Question 24 (4 points)
what is the general systax for defining (creating) an object
Question 24 options:
|
|
Question 25 (4 points)
What is the definition of a variable
Question 25 options:
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
