C++ How do I store a class type as a value

Thanks, I’ll try that out soon.