We have discussed Pizza design problem and different naive approaches to solve it in set 1. We have also introduced Decorator pattern in Set 2. In this article, design and implementation of decorator pattern for Pizza problem is discussed. It is highly recommended that you try it yourself first.
Read more: https://www.geeksforgeeks.org/decorator-pattern-set-3-coding-the-design/