Skip to content

Commit 7002f82

Browse files
committed
fixed a comment
1 parent ef74077 commit 7002f82

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/ch6_definingclasses.ptx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ class Student:
839839
def __init__(self, id, name):
840840
self.id = id
841841
self.name = name
842-
Student.numStudents = Student.numStudents + 1 # this is a static variable, that can be accessed without the self prefix
842+
# this is a static variable, that can be accessed without the self prefix
843+
Student.numStudents = Student.numStudents + 1
843844
def main():
844845
for i in range(10):
845846
s = Student(i,"Student-"+str(i)) # create a new Student object

0 commit comments

Comments
 (0)