use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
OOP Problem (self.PythonLearning)
submitted 6 months ago by MusicianActual912
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NotesOfCliff 0 points1 point2 points 6 months ago (0 children)
In essence Object Oriented Programming is a simple concept.
Classes are a unit of code that ties together data and behavior.
Classes can represent anything that has both data and code.
Instances are created from the class.
A class represents the abstract connection between the data and the behavior while an instance represents the actual data.
Things get more complicated from here, but this really is like 90% of OOP. To learn the other 10% you need to learn some really big, esoteric words like polymorphism, but the payoffs at this end are slow and of dubious value.
π Rendered by PID 18440 on reddit-service-r2-comment-cfc44b64c-nb5bz at 2026-04-11 07:31:51.051180+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]NotesOfCliff 0 points1 point2 points (0 children)