I need to use enum class and factory method with static function create to be able to create the appropriate type of Object
enum class Object
{
First,
Second,
Third
};
Each object has function1, function2 and function3.
I searched about enum class and factory method but don't know how to combine them.
Aucun commentaire:
Enregistrer un commentaire