0 votes
in JAVA by
What will happen if "In a C++ program a class has no name"?

(i) It is not even allowed in C++

(ii) It will not have the Constructor

(iii) It will not have the destructor

(iv) Both B and C

1 Answer

0 votes
by

Answer: C

Explanation: In the C++ program, if we use a class without assigning a name. As a result, it will not be going to have a destructor, but it will have the object.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...