C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 47)
47.
What will happen if a class is not having any name?
It cannot have a destructor.
It cannot have a constructor.
It is not allowed.
Both A and B.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
25 comments Page 3 of 3.

Rhuda said:   1 decade ago
Its possible in C++ but is this true for java?

Djain said:   1 decade ago
Then, how will you instantiate that classes?

Lalit kulkarni said:   1 decade ago
How we can create the object of the class?

Tejas said:   1 decade ago
But my compiler reports an error.

Dipty said:   1 decade ago
What is then nameless object?


Post your comments here:

Your comments will be displayed after verification.