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 4 of 7.

Kushal said:   1 decade ago
because friend are not constructors they are just used to access private data members of the classes.

Sanket said:   1 decade ago
All are type of constructor but friend is a type of function class type.

Gaurav said:   1 decade ago
Tell me something more about constructor or please explain about constructor.

Chinmaya said:   1 decade ago
There are only 3 types of constructor.

Default, parameterized and copy constructor.

Ankit Maharshi said:   1 decade ago
"friend" is a keyword which is use for class & function. It is not a constructor type.

Kajal kale said:   1 decade ago
Because friend function are used to the join to to the class. Hence it is not type of constructor.

Sneha kuwar said:   1 decade ago
There are only three type of constructor. Default, parameterized and copy.

Priyanka patra said:   1 decade ago
Friend is not a constructor. It's a type of function which allow to access private data member variable of a class.

Hemu jai said:   1 decade ago
What is the purpose of three constructor? what is the definition ?

Ganesh Vahinde said:   1 decade ago
Friend is not a constructor it is the function, which allows to use the private data out side the class.


Post your comments here:

Your comments will be displayed after verification.