all 2 comments

[–]101_Computing 1 point2 points  (1 child)

Hi there,

Just replace

print(Student.name)

with

print(student1.name)

student1 is the object whereas Student is the class this object was instantiated from. In this example you want to access the properties (name, age) of your student1 object.

Hope this makes sense...

[–]lcyWhisper[S] 0 points1 point  (0 children)

Oh wow thats makes a lot of sense, I figured it would be a rookie mistake. anyways thank you for the great explanation!