C++ Constructor Create default constructor via the new keyword default
class Employee /*w ww . ja va 2 s . c o m*/ { public: Employee(const char *pName) { name = pName; } Employee() = default; string name; }; int main(int argcs, char* pArgs[]) { Employee noName; return 0; }