00001 #include <iostream> 00002 #include <memory> 00003 #include <string> 00004 00005 // Product 00006 class Pizza 00007 { 00008 private: 00009 std::string dough; 00010 std::string sauce; 00011 std::string topping; 00012 00013 public: 00014 Pizza() { } 00015 ~Pizza() { } 00016 00017 void SetDough(const std::string& d) { dough = d; }; 00018 void SetSauce(const std::string& s) { sauce = s; }; 00019 void SetTopping(const std::string& t) { topping = t; } 00020 00021 void ShowPizza() 00022 { 00023 std::cout << " Yummy !!!" << std::endl 00024 << "Pizza with Dough as " << dough 00025 << ", Sauce as " << sauce 00026 << " and Topping as " << topping 00027 << " !!! " << std::endl; 00028 } 00029 };