Question
a.
constructors can take arguments but destructor can’t
b.
constructors can be overloaded but destructors can’t be overloaded
c.
both a & b
d.
None of these
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. The differences between constructors and destructor are
Similar Questions
Discover Related MCQs
Q. A destructor takes
View solution
Q. In C++ a function contained within a class is called
View solution
Q. The fields in a class of a C++ program are by default
View solution
Q. Which of the following function that must contain in all C++ programs?
View solution
Q. What punctuation must use to end the code C/C++ expression statement?
View solution
Q. What symbol must use to signal the begaining and ending of code blocks or compound statements?
View solution
Q. Which of the following is a correct comment for comment in C programs?
View solution
Q. What value will return to the operating system upon the successful completion of a program?
View solution
Q. Which one of the following is the correct operator to compare two variables?
View solution
Q. Which one of the following is not a correct variable type in C++ programs?
View solution
Q. The directives for the preprocessors begin with
View solution
Q. The header file iostream includes
View solution
Q. Which one of the following is the boolean operator for logical and?
View solution
Q. What is the only function all C++ programs must contain?
View solution
Q. What punctuation is used to the beginning and end of code blocks?
View solution
Q. What punctuation must be used to end lines of C++ code?
View solution
Q. Which of the following is a correct comment?
View solution
Q. Which of the following is the Boolean operator for logical and?
View solution
Q. The file “iostream” includes
View solution
Q. NULL Pointer can be used as
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!