Given the following :
enum Moving {DownRight , UpRight ,DownLeft ,UpLeft ,Up , Down ,Left ,Right};
Moving m_moving;
If I do for example :
m_moving = Moving.DownRight;
and
m_moving.toString();
Then I'll get :
DownRight
So ,how can I add a description for each entry in the enum ?
For example , if I'd do m_moving.toString();
then I want to present FOO BAR
.
Thanks