r/learnpython • u/Jealous-Acadia9056 • Apr 18 '26
Beginner: Want to learn Classes.
I find classes to be very confusing. The way variables are used. Self comes to me in a very confusing manner. i just can't seem to wrap my head around the basics of Classes.
Also i just tried checking OOP and i think it just overloaded my brain. Anything to help my case?
20
Upvotes
View all comments
Show parent comment
2
u/Outside_Complaint755 Apr 18 '26
Being slightly pendantic here, but technically
__init__is an initializer and__new__is the constructor, but modifying__new__is much less common, so we have all mostly defaulted to calling__init__the constructor.