delete the defalut constructor code example Example: c++ default constructor remove class A { public: A() = delete; };