Create a design pattern using Python.
If you would like to know more detailed information please see the reference book.
- Python 3.5 or higher
The design pattern to be implemented is noted below.
# Run sample program
$ cd iterator/
$ python sample.py
# Run sample program
$ cd adapter/
$ python sample.py
# Run sample program
$ cd template_method/
$ python sample.py
# Run sample program
$ cd factory_method/
$ python sample.py
# Run sample program
$ cd singleton/
$ python sample.py
# Run sample program
$ cd prototype/
$ python sample.py
# Run sample program
$ cd builder/
$ python sample.py
# Run sample program
$ cd abstract_factory/
$ python sample.py
# Run sample program
$ cd bridge/
$ python sample.py