diff --git a/Notes/05_Object_model/02_Classes_encapsulation.md b/Notes/05_Object_model/02_Classes_encapsulation.md index 11448db77..5cabcbd11 100644 --- a/Notes/05_Object_model/02_Classes_encapsulation.md +++ b/Notes/05_Object_model/02_Classes_encapsulation.md @@ -38,7 +38,7 @@ Any attribute name with leading `_` is considered to be *private*. ```python class Person(object): def __init__(self, name): - self._name = 0 + self._name = name ``` As mentioned earlier, this is only a programming style. You can still