hi ,
can any body suggest me on how to implement the below in C++, can this be done
The compiler should allow me to create only one object for a class , when tried to create another object it should throw an error.
Eg:
insertCode:class A{
int a;
}
int main()
{
A a; // when only one object is created there is not error
A b; // when second object is created compiler should give error
}