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
Q2: What is the difference between struct and
Q3: The default access level assigned to members
Q4: There is nothing like a virtual constructor
Q5: Which of the following operators allow defining
Q6: Which type of class has only one
Q8: Under what conditions a destructor destroys an
Q9: When class B is inherited from class
Q10: Which one of the following is not
Q11: Variables declared in the body of a
Q12: In a class definition, data or functions
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