2019-10-29 14:14:19 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include "ProxyPattern.h"
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
Subject *subject;
|
|
|
|
subject = new Proxy();
|
|
|
|
subject->method();
|
|
|
|
|
|
|
|
printf("\n\n");
|
|
|
|
|
2020-11-29 05:40:29 +00:00
|
|
|
delete subject;
|
2021-10-09 05:38:52 +00:00
|
|
|
subject = nullptr;
|
2020-11-29 05:40:29 +00:00
|
|
|
|
2019-10-29 14:14:19 +00:00
|
|
|
system("pause");
|
|
|
|
return 0;
|
2021-10-09 05:38:52 +00:00
|
|
|
}
|