Multiple Choice
What is a constructor?
A) a class automatically called whenever a new object of this class is created.
B) a class automatically called whenever a new object of this class is destroyed.
C) a function automatically called whenever a new object of this class is created.
D) a function automatically called whenever a new object of this class is destroyed.
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Which one of the following is not
Q10: Under what conditions a destructor destroys an
Q11: When class B is inherited from class
Q12: A function argument is<br>A)a variable in the
Q13: A function's single most important role is
Q15: In a class definition, data or functions
Q16: Which type of class has only one
Q17: An expression<br>A)usually evaluates to a numerical value.<br>B)may
Q18: Classes are useful because they<br>A)can closely model
Q19: It's perfectly all right to use variables