Implemented Proxy design pattern.

This commit is contained in:
tylerlaberge
2016-08-20 14:35:00 -04:00
parent e59f84105b
commit e7f7674030
2 changed files with 63 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
class Proxy(object):
"""
Base Proxy class as part of the Proxy design pattern.
"""
def __init__(self, subject):
"""
Initialize a new proxy instance.
@param subject: The real subject this proxy calls upon.
"""
self._subject = subject