Hi,
I have created a public typedef in one class, but I want to use it in another class. Let me clarify using an example:
And now I'm using it in another class:Code:class WhereTypeIsDeclared { public: typedef enum {RED, GREEN, BLUE, WHITE} Colors; };
How do I make this thing work? Thanks in advance.Code:#include WhereTypeIsDeclared // I've used includes AND foward declaration class WhereTypeIsDeclared; class WhereTypeIsUsed { public: void readColor(Colors* c); };
Renan M Z Mendes