Skip to content

Commit 1b6628c

Browse files
authored
Merge pull request #76 from braboj/codex/add-header-for-instance-attributes-in-__init__
Add header on instance attributes
2 parents 85cabee + 06bbb60 commit 1b6628c

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)