C++ Programming - Objects and Classes - Discussion
Discussion Forum : Objects and Classes - General Questions (Q.No. 14)
14.
Constructor is executed when _____.
Discussion:
3 comments Page 1 of 1.
NANDHINI said:
10 years ago
Constructor name is equal to the name of the class. In constructor we can be possible to object overloading. Then when we create an object. So we can easily to create constructor.
Raghib said:
10 years ago
But we can create an object without a constructor also. So it should be when the object is used. Then the initialization of that object takes place in the memory.
Ranjan Mishra said:
1 decade ago
When we create any object by class then either default or parameterized constructor called by compiler.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers