Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
Objects and Classes
Which of the following statements is correct about the constructors and destructors?
Destructors can take arguments but constructors cannot.
Constructors can take arguments but destructors cannot.
Destructors can be overloaded but constructors cannot be overloaded.
Constructors and destructors can both return a value.
Correct Answer:
Constructors can take arguments but destructors cannot.
Next Question→
More Questions from
Objects and Classes
How can we make a class abstract?
What does the class definitions in following code represent? class Bike { Engine objEng; }; class Engine { float CC; };
Which of the following statements about virtual base classes is correct?
Which of the following type of data member can be shared by all instances of its class?
Which of the following statement is correct with respect to the use of friend keyword inside a class?
Which of the following statements are correct for a static member function? It can access only other static members of its class. It can be called using the class name, instead of objects.
Which of the following statements is correct when a class is inherited publicly?
Which of the following access specifies is used in a class definition by default?
Which of the following statement is correct regarding destructor of base class?
What does a class hierarchy depict?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments