C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 2)
2.
Which of the following is not a type of constructor?
Copy constructor
Friend constructor
Default constructor
Parameterized constructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
68 comments Page 7 of 7.

Guru said:   1 decade ago
What's the work of Parameterized constructor ?

Ajitha said:   1 decade ago
Because friend function is named as private in access the data in defined class.

Suresh said:   1 decade ago
Constructor are used to initialize the object. The Friend constructor is not available as a constructor. Friend is function. which use to access the data and methods of the defined class.

Sudhir kumar kushwaha said:   1 decade ago
Only three type of constructor.
Copy constructor
Default constructor
Parameterized constructor

Sanjaya said:   1 decade ago
We have friend class and function, not any constructor.

Srikanth said:   1 decade ago
Constructor's cannot have type or qualifiers. Hence nothing can precede constructor including void.

Suneetha said:   1 decade ago
Rest of all are the types of constructor and friend is function.

Madhu Pal said:   1 decade ago
Because rest of all are the types of constructor.


Post your comments here:

Your comments will be displayed after verification.