class AbstractShape {
public:
    virtual void draw() = 0; // Pure virtual function
};

class Triangle : public AbstractShape {
public:
    void draw() override {
        cout << "Drawing a triangle." << endl;
    }
};