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 1 of 7.
Madhu Pal said:
1 decade ago
Because rest of all are the types of constructor.
Suneetha said:
1 decade ago
Rest of all are the types of constructor and friend is function.
Srikanth said:
1 decade ago
Constructor's cannot have type or qualifiers. Hence nothing can precede constructor including void.
Sanjaya said:
1 decade ago
We have friend class and function, not any constructor.
Sudhir kumar kushwaha said:
1 decade ago
Only three type of constructor.
Copy constructor
Default constructor
Parameterized constructor
Copy constructor
Default constructor
Parameterized constructor
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.
Ajitha said:
1 decade ago
Because friend function is named as private in access the data in defined class.
Guru said:
1 decade ago
What's the work of Parameterized constructor ?
Nagesh said:
1 decade ago
Parameterized constructor is just like default constructor but allows the parameters just like functions with parameters.
Ravinder gurjar said:
1 decade ago
Only for three type constructor in j2se.
Defoult, parameterized, copy constructor.
Frinds connstructor is not constructor.
Defoult, parameterized, copy constructor.
Frinds connstructor is not constructor.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers