Update p06_create_managed_attributes.rst
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
class Person:
|
class Person:
|
||||||
def __init__(self, first_name):
|
def __init__(self, first_name):
|
||||||
self._first_name = first_name
|
self.first_name = first_name
|
||||||
|
|
||||||
# Getter function
|
# Getter function
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user