Which of the following statements is false?
A) You can overload a classes constructors.
B) There is no mechanism in C++ for a constructor to call another constructor in the same class.
C) Just as a constructor can call a class's other member functions to perform tasks, C++11 allows constructors to call other constructors in the same class.
D) To overload a constructor, provide in the class definition a prototype for each version of the constructor, and provide a separate constructor definition for each overloaded version.
Correct Answer:
Verified
Q11: A class-scope variable hidden by a block-scope
Q12: Variables defined inside a member function of
Q13: Which of the following statements is false
Q14: Given the class definition: class CreateDestroy
{
Public:
CreateDestroy() {cout
Q15: Every object of the same class:
A) Gets
Q17: Which of the following is not true
Q18: Which of the following preprocessor directives does
Q19: If a member function of a class
Q20: Utility functions:
A) Are private member functions that
Q21: The code fragment: Increment::Increment(int c, int i)
:
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents