Implemented Proxy design pattern.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user