1 2 3 4 5 6 7 8 9
#pragma once class Enemy { private: Enemy() = default; virtual ~Enemy() = default; friend class EnemyFactory; };