I want to write a class which will allow to create an object only using new (Dynamic object creation) i.e., i should not be able to create a static object, how can i do this please guide me.
I have tried that method, and also tried using static functions(Singleton) both are working fine. but i want to know whether C++ is providing any feature or there are any other ways to do this.