C++ Programming - Objects and Classes - Discussion
Discussion Forum : Objects and Classes - General Questions (Q.No. 7)
7.
Which of the following statements is correct about the constructors and destructors?
Discussion:
4 comments Page 1 of 1.
Chintan M K said:
1 decade ago
By eliminating options.
In A) constructors take arguments so eliminated.
In C) constructors can be overloaded.
In D) again true.
In A) constructors take arguments so eliminated.
In C) constructors can be overloaded.
In D) again true.
Ash said:
1 decade ago
Why not destructor can take arguments ?
Aakash said:
1 decade ago
Destructor can be overloaded?
Vasu said:
9 years ago
Arguments are required only if they are going to perform anything inside the function.
Destructor does not perform any function, it just used for displaying purpose and to destroy an object.
Destructor does not perform any function, it just used for displaying purpose and to destroy an object.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers