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?
Discussion:
68 comments Page 4 of 7.
Prashant said:
9 years ago
The friend is not a constructor because friend is an access specifier and they used in asp.net.
Sudhir kumar kushwaha said:
1 decade ago
Only three type of constructor.
Copy constructor
Default constructor
Parameterized constructor
Copy constructor
Default constructor
Parameterized constructor
Nitika Singh said:
9 years ago
We can pass the value as a parameter of the constructor, but it's not a type of constructor.
Ankit Maharshi said:
1 decade ago
"friend" is a keyword which is use for class & function. It is not a constructor type.
Sid said:
5 years ago
A constructor can not be defined outside the class so Friend constructor can't be define.
(5)
Laxmikant said:
1 decade ago
The only three constructor the friend constructor is a not constructor it is a function.
Chinmaya said:
1 decade ago
There are only 3 types of constructor.
Default, parameterized and copy constructor.
Default, parameterized and copy constructor.
Sharvari said:
7 years ago
The friend is not a type of any constructor. Right? If not please explain in detail.
Ajitha said:
1 decade ago
Because friend function is named as private in access the data in defined class.
Sakshi jain said:
9 years ago
Default, Parameterized, and Copy constructor are the constructor types of C++.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers