C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 17)
17.
Which of the following statement is correct?
Discussion:
26 comments Page 3 of 3.
Baru said:
1 decade ago
Constructor having same class name that's why we are call the constructor at the time of object creation.
Object creation is:.
Classname refernce variable=new classname () ;.
In this constructor name n classname is also same that's why we are call the constructor at the time of object creation.
Object creation is:.
Classname refernce variable=new classname () ;.
In this constructor name n classname is also same that's why we are call the constructor at the time of object creation.
Simran said:
1 decade ago
Constructor is automatically called when we create the object.
Shadab said:
1 decade ago
According to me, When we are create a object then automatically create default Constructor.
Sri said:
1 decade ago
When we are declare or creating the objects then the constructor is automatically invoked.
Biraj said:
1 decade ago
Option A and D are same and both are wrong.
Constructor is called at time of object creation :-)
Constructor is called at time of object creation :-)
Priyanka p said:
1 decade ago
According to me, constructor is a special function which can be invoke when object is created.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers