Skip to content

Commit 06bbb60

Browse files
committed
Improve instance attributes explanation
1 parent 85cabee commit 06bbb60

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/08_classes/class_instance_attributes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Define and access instance attributes
2+
# ------------------------------------------------------------------------------
3+
# Instance attributes are defined in the __init__ method. They store data
4+
# unique to each object and can be accessed through the instance of the class.
5+
16
class Person(object):
27

38
def __init__(self):

0 commit comments

Comments
 (0)