public, private set, get private, public get, set regular, inline 1.00000 points
ID: 3728045 • Letter: P
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 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
public, private
set, get
private, public
get, set
regular, inline
Explanation / Answer
here are the answer..
Ans:17 Option A is correct.
Ans:18 Option A is correct.
Ans:19 Option B is correct.
Ans:20 Option E is correct.
constructor has no return type.
===============================================================
Kindly Check and Verify Thanks..!!!
===============================================================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.