Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1911

how to get good at object oriented programming (python)

by Snake1337 - 09 November, 2020 - 01:00 PM
This post is by a banned member (Snake1337) - Unhide
Snake1337  
Godlike
2.318
Posts
317
Threads
5 Years of service
#1
(This post was last modified: 09 November, 2020 - 01:04 PM by Snake1337.)
So i have been learning python, but i am having a hard time understanding the oop concepts.
So where are oops concepts  used generally and why they are used vs functional programming
Also doing projects gives more clarity , and programs using oop are generaly very big.
Can you guys suggest me some small projects/programs using oop.
maybe share some resources you found useful :pepegun:
any help is appreciated thanks  [Image: Amusing.png]
[Image: 7xibycc.jpg]

This post is by a banned member (MoneyWraith) - Unhide
This post is by a banned member (Snake1337) - Unhide
Snake1337  
Godlike
2.318
Posts
317
Threads
5 Years of service
#3
(09 November, 2020 - 01:07 PM)MoneyWraith Wrote: Show More
OOP gives you access to encapsulation (private variables etc) that you dont want other classes to access

In functional programming data can't be stored in objects and can only be manipulated / transformed in functions but with OOP data is stored in objects and you dont need a function / method to use or manipulate that data

OOP is used when you want to reduce effort used, like a blueprint.

I'm pretty bad at explaining things as I'm more of a practical person but let me give you a link that may help you understand a bit better

OOP Understanding


If you need any more help let me know, I could possibly send you an example project too with comments explaining things Hype

Have fun on your journey PepeGlad

thank you  it will help  pepeokay <3
[Image: 7xibycc.jpg]

This post is by a banned member (MoneyWraith) - Unhide
This post is by a banned member (Snake1337) - Unhide
Snake1337  
Godlike
2.318
Posts
317
Threads
5 Years of service
#5
(This post was last modified: 09 November, 2020 - 01:30 PM by Snake1337.)
(09 November, 2020 - 01:22 PM)MoneyWraith Wrote: Show More
(09 November, 2020 - 01:17 PM)Rattlesnake Wrote: Show More
(09 November, 2020 - 01:07 PM)MoneyWraith Wrote: Show More
OOP gives you access to encapsulation (private variables etc) that you dont want other classes to access

In functional programming data can't be stored in objects and can only be manipulated / transformed in functions but with OOP data is stored in objects and you dont need a function / method to use or manipulate that data

OOP is used when you want to reduce effort used, like a blueprint.

I'm pretty bad at explaining things as I'm more of a practical person but let me give you a link that may help you understand a bit better

OOP Understanding


If you need any more help let me know, I could possibly send you an example project too with comments explaining things Hype

Have fun on your journey PepeGlad

thank you  it will help  pepeokay <3

Example: Dogs in python
[Image: FeelsStrongMan.png] ty bro for your effort appreciate  Pepelove this week i will kill it oop once and for all
[Image: 7xibycc.jpg]

This post is by a banned member (MoneyWraith) - Unhide
This post is by a banned member (datom96725) - Unhide
This post is by a banned member (words) - Unhide
words  
Supreme
1.445
Posts
322
Threads
5 Years of service
#8
to be honest : OOP is kinda hard, when you code from normal to it, but when you understand how it works, the __init__... you have pretty much understood everything :D
I do not sell anything. I do not have a public Discord / Telegram. I will never ask anyone for money / refuse any deal via middleman. I will never deny to confirm my identity via PM before any deal. Stay safe, I have impersonators.
(-.-)Zzz...

https://youtu.be/EDVrTYW2l84

 

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)