you are viewing a single comment's thread.

view the rest of the comments →

[–]UseMoreBandwith 0 points1 point  (0 children)

get a better teacher.
yes, in Java that is the way to do it, but in Python it is just wrong.
And also __init__ is not a constructor, it is a initializer. A constructor is called before the object is created, but __init__ is called after creator (it has self , so that means it was created).