Implemented bridge design pattern.

This commit is contained in:
tylerlaberge
2016-08-14 15:04:29 -04:00
parent 36ecc7a1d5
commit 66a5107d90
2 changed files with 108 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from abc import ABCMeta
class Bridge(object, metaclass=ABCMeta):
"""
Base Bridge class as part of the Bridge design pattern.
"""
def __init__(self, implementor):
"""
Initialize a new Bridge instance.
@param implementor: The implementor that concrete classes should call upon to do some action.
"""
self.implementor = implementor