T
Tony Johansson
Hello!!
I have noticed that when you have defined some enum in the class definitions
these are called as if they were class members. Why is it not possible to
access enum BLACK and WHILE by using object t in main.
Ex.
class Test
{ enum Color{BLACK,WHITE}; };
main
{
Test t;
cout << Test::BLACK;
}
//Tony
I have noticed that when you have defined some enum in the class definitions
these are called as if they were class members. Why is it not possible to
access enum BLACK and WHILE by using object t in main.
Ex.
class Test
{ enum Color{BLACK,WHITE}; };
main
{
Test t;
cout << Test::BLACK;
}
//Tony