Issues with code
#include <iostream> struct Grapher; class Direction{ protected: char directionType; public: getDirectionType(){ return directionType; } }; class Down : public Direction{ public: Down(char down) { directionType = down; } }; class Right : public Direction{ public: Right(char right) { directionType = right; } }; class Left : public Direction{ public: Left(char left) { directionType = left; } }; int main() { return 0; } struct Grapher{ if(Direction::getDirectionType == Left::left) std::cout << "<"; if(Direction::getDirectionType == Right::right) std::cout << ">"; if(Direction::getDirectionType == Down::down) std::cout << "|"; }; Note: this code musn't outputs anything right now.