Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
How and why start using classes
Post Body

Hello,

I am an electronic engineer, I have mostly been using python for quick test of algorithms, or for having a easy quick way to communicate embedded systems to PC.

I would like to learn a little more of python, I am most of the learn by doing rather than read books.

Most of my programs have been scripts on a single file, at most I use def to create functions.

I would like to learn how and why should I use OOP approach and classes, so any pointers would help.

Since I learned the basics of programming, I have always tried to learn about OOP and their approach, but I really find most tutorials as not practical.

They are like, lets make class, animal and then lets make sub class lion that inherits from animal, etc...

Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,618
Link Karma
1,282
Comment Karma
3,262
Profile updated: 6 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago