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

Swati said:   1 decade ago
Friend keyword is use to create a friend function or friend class, it is not a type of constructor.

Siva said:   1 decade ago
What is the function of virtual function?

Lachu said:   1 decade ago
The use of parameterized constructor is passing the values to the function.

Gautam kanawade said:   1 decade ago
Why constructor does not have any return type?

Preetham said:   1 decade ago
What is copy constructor?

Vidya v nair said:   1 decade ago
What is a friend function?

Lalit said:   1 decade ago
Friend is a function, not a class & constructor is used with class, constructor is a function that create a object.

Laxmikant said:   1 decade ago
The only three constructor the friend constructor is a not constructor it is a function.

Varun Vivek J said:   1 decade ago
Friend is a function.

Where as all others are constructors.

Its a pre defined function and can be used to create functions whereas, constructors are used for functions itself!

Sumesh sg said:   1 decade ago
Because friend is a non member function.

It is a function and not a constructor.

Since there are 3 types of constructor i.e.

1. Parameterized constructor.
2. Default constructor.
3. Copy constructor.


Post your comments here:

Your comments will be displayed after verification.