//First class X { public: void* p; X() { p = NULL; } }; //Second class X { public: void* p; X() : p(NULL) { } }; //... X* x = new X();