Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
Constructors and Destructors
Copy constructor must receive its arguments by __________ .
either pass-by-value or pass-by-reference
only pass-by-value
only pass-by-reference
only pass by address
Correct Answer:
only pass-by-reference
← Previous Question
Next Question→
More Questions from
Constructors and Destructors
__________ used to make a copy of one class object from another class object of the same class type.
A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.
Which of the following statement is correct about constructors?
Constructors __________ to allow different approaches of object construction.
How many default constructors per class are possible?
To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .
Which of the following gets called when an object goes out of scope?
Which of the following cannot be declared as virtual?
Which of the following are NOT provided by the compiler by default?
Destructor has the same name as the constructor and it is preceded by ______ .
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments