mercredi 23 septembre 2020

What's the difference between enum, class, and enum class in C++?

I've been studying Principles and Practice Using C++ and C++ Primer, but there's one concept (among many) that I still have a hard time grasping.

What's the difference between enum, class, and enum class, and when do we use them and how do we choose which one to use?

Thanks!

Aucun commentaire:

Enregistrer un commentaire