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;
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!