add underscore to property (#2691)

property is exposed using setter and getters
This commit is contained in:
Ankush Aggarwal 2017-03-28 01:21:18 -07:00 committed by ven
parent c1d773eab7
commit 82c3ce4e8c

View File

@ -665,7 +665,7 @@ class Human:
self.name = name
# Initialize property
self.age = 0
self._age = 0
# An instance method. All methods take "self" as the first argument
def say(self, msg):