Skip to content

Commit bb38783

Browse files
authored
Template design pattern.
1 parent 8cf5bcc commit bb38783

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Behavioral/template.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# ------------------------------
2+
# Template Design Pattern.
3+
# ------------------------------
4+
# Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses
5+
# redefine certain steps of an algorithm without changing the algorithm's structure
6+
17
from abc import ABC, abstractmethod
28

39
class Template(ABC):

0 commit comments

Comments
 (0)