in JAVA by
Q:
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.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
asked Jan 24 in JAVA by rajeshsharma
0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
+2 votes
asked Jun 19, 2019 in C Plus Plus by johncina
+1 vote
0 votes
asked Jan 24 in JAVA by rajeshsharma
+1 vote
asked May 14, 2019 in C Plus Plus by anonymous
0 votes
asked Jun 15, 2020 in C Plus Plus by Robindeniel
+2 votes
...