G
G
Gucci chef2021-08-19 17:55:58
C++ / C#
Gucci chef, 2021-08-19 17:55:58

Is it correct to use caps in enum?

I noticed that enum is written like this:

enum CellState {
STANDART,
HOVER
}

Instead of how I write:

enum CellState {
Standart,
Hover
}


Who has it right? Why is it necessary to write in caps? In all cases?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question