Design pattern cpp

Design pattern