It is possible to create a unnamed class? how make object of such class?
What is unnamed class?
Basically, unnamed class is unlike from the regular class
-It do not have a name.
-Have not a concept of the constructor and destructor.
-we create a object of such type of class at the time of class declaration.
#include < iostream>
using namespace std;
cout<<"Unnamed class function";
cout<< object.num<< endl;
Read More →
Unnamed class function