Question
public, private set, get private, public get, set regular, inline 1.00000 points QUESTION 17 A ________ is a member function that is automatically called when
public, private | ||
set, get | ||
private, public | ||
get, set | ||
regular, inline |
1.00000 points
QUESTION 17
A ________ is a member function that is automatically called when a class object is ________.
constructor, created | ||
destructor, created | ||
constructor, destroyed | ||
destructor, destroyed | ||
both A and D |
2.00000 points
QUESTION 18
A C++ member function that uses, but does not change, the value of a member variable is called a(n) ________.
constant | ||
accessor | ||
user | ||
constructor | ||
mutator |
1.00000 points
QUESTION 19
If Circle is the name of a class, which of the following statements would create a Circle object named myCircle?
Circle myCircle(); | ||
Circle myCircle; | ||
myCircle Circle; | ||
myCircle Circle(); | ||
None of the above |
1.00000 points
QUESTION 20
A constructor may have a return type of ________.
int | ||
void | ||
bool | ||
Any of the above | ||
None of the above |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started