I have class like following:
class Car { public: Car(); // Some functions and members and enums enum Color {
Name the enum inside the nested class (as example one):
class Car { public: struct Color { enum Type { Red, Blue, Black }; }; Color::Type getColor(); void setColor(Color::Type); };