adplus-dvertising
frame-decoration

Question

A class having no name

a.

is not allowed

b.

can’t have a constructor

c.

can’t have a destructor

d.

can’t be passed as an argument

Answer: (c).can’t have a destructor

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A class having no name

Similar Questions

Discover Related MCQs

Q. The differences between constructors and destructor are

Q. A destructor takes

Q. In C++ a function contained within a class is called

Q. The fields in a class of a C++ program are by default

Q. Which of the following function that must contain in all C++ programs?

Q. What punctuation must use to end the code C/C++ expression statement?

Q. What symbol must use to signal the begaining and ending of code blocks or compound statements?

Q. Which of the following is a correct comment for comment in C programs?

Q. What value will return to the operating system upon the successful completion of a program?

Q. Which one of the following is the correct operator to compare two variables?

Q. Which one of the following is not a correct variable type in C++ programs?

Q. The directives for the preprocessors begin with

Q. The header file iostream includes

Q. Which one of the following is the boolean operator for logical and?

Q. What is the only function all C++ programs must contain?

Q. What punctuation is used to the beginning and end of code blocks?

Q. What punctuation must be used to end lines of C++ code?

Q. Which of the following is a correct comment?

Q. Which of the following is the Boolean operator for logical and?

Q. The file “iostream” includes