class foo {private : foo(); // デフォルトコンストラクタを使用禁止 foo(const foo&); // コピーコンストラクタを使用禁止 foo& operator= (const foo&); // 代入演算子を使用禁止};