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