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.

Sonu said:   1 decade ago
Nameless class can be considered as Abstract class.

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

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

Ram bidwai said:   1 decade ago
If class is not having any name then how can we create object of that class and also we can't create constructor.

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


Post your comments here:

Your comments will be displayed after verification.