initialize repository of design pattern template

This commit is contained in:
LU
2025-08-09 08:41:14 +08:00
commit 1727e31b9d
32 changed files with 2149 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "prototype.hpp"
ConcretePrototype::ConcretePrototype(const ConcretePrototype& c)
{
cout << "ConcretePrototype copy construct!" << endl;
}
Prototype* ConcretePrototype::Clone()
{
return new ConcretePrototype(*this);
}