Motivate the need for Decorator Design Pattern. The below code attempts to add window dressing. Finish the implementatio
Posted: Fri May 20, 2022 1:28 pm
Motivate the need for Decorator Design Pattern. The below code attempts to add window dressing. Finish the implementation and provide minimum client code illustrating its use. Il component class Window { public: Window(const string & window=""): window_(window){}; virtual string showWindow() const (return window; } private: const string window_; }; Il decorators, complete them class Curtains: public Window { }; class Blinds: public Window { }; using c++