Skip to content

Commit 00c7a13

Browse files
committed
TR updates, first round
1 parent aec685b commit 00c7a13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python-getter-setter/employee4.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ def __init__(self, name, birth_date, start_date):
2020
self.name = name
2121
self.birth_date = birth_date
2222
self.start_date = start_date
23+
24+
@property
25+
def name(self):
26+
return self._name
27+
28+
@name.setter
29+
def name(self, value):
30+
self._name = value.upper()

0 commit comments

Comments
 (0)