DesignPattern/13.ProxyPattern/2.Code/main.cpp

18 lines
211 B
C++

#include <iostream>
#include "ProxyPattern.h"
int main()
{
Subject *subject;
subject = new Proxy();
subject->method();
printf("\n\n");
delete subject;
subject = nullptr;
system("pause");
return 0;
}