Design Pattern Examples
Overview of object-oriented design patterns
strategy_entryinformation.py
Go to the documentation of this file.
1
6
7
8
class
EntryInformation
:
9
10
18
def
__init__
(self, name : str, age : int, height : int) ->
None
:
19
self.
Name
= name
20
self.
Age
= age
21
self.
Height
= height
22
23
29
30
31
36
def
ToString
(self) -> str:
37
return
"{0:6} {1:3} {2:3}\""
.format(self.
Name
, self.
Age
, self.
Height
)
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation
Represents an individual with a Name, Age, and Height.
Definition:
strategy_entryinformation.py:8
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation.ToString
str ToString(self)
Convert the entry into a string.
Definition:
strategy_entryinformation.py:36
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation.Age
Age
Age of this individual, in years.
Definition:
strategy_entryinformation.py:20
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation.__init__
None __init__(self, str name, int age, int height)
Constructor.
Definition:
strategy_entryinformation.py:18
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation.Height
Height
Height of this individual, in inches.
Definition:
strategy_entryinformation.py:21
DesignPatternExamples_python.strategy.strategy_entryinformation.EntryInformation.Name
Name
Name of this individual.
Definition:
strategy_entryinformation.py:19
python
DesignPatternExamples_python
strategy
strategy_entryinformation.py
Generated on Tue Aug 29 2023 19:47:44 for Design Pattern Examples by
1.9.6