C++ (Qt)class Vector {...private: QPoint direction; size_t size; QColor color;};
C++ (Qt)typedef Vector2D QPoint;
C++ (Qt)class Line {.. QPoint p0, p1; QColor color; };
C++ (Qt)class ColorLine : public QLine {.. QColor color; };