+ 5

May you please count the difference between enumeration, class and structure.

I know the basics: how to use them. But the problem is that I don't really understand when we use each other and in what case. I would be very thankful if you'll help me. Thank you!!!

5th Jul 2019, 1:54 PM
the ы
the ы - avatar
1 ответ
+ 3
Basically enum < struct < class in functionality. They are interchangeable in certain context, then the preferred choice is obviously the one more lightweight.
9th Jul 2019, 9:03 AM
khangnd
khangnd - avatar