Exercise: implement the factory method using std::shared_ptr

Exercise

 

  • pdf

Solution

 

  • source