This program implemented the classic design patterns with C++.