Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Which of the following are TRUE about constructors in C++ ?

(A) A constructor can be overloaded.
(B) A constructor does not have a return type.
(C) A constructor must be declared as a friend function.
(D) A constructor is called when an object is destroyed.

Choose the correct answer from the options given below :





Solution

(A) True

Constructors can be overloaded.


(B) True

Constructors do not have return type.


(C) False

Constructors are member functions, not friend functions.


(D) False

Destructor is called when object is destroyed.


Thus correct statements:


(A) and (B)



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...