The Ultimate Course of Python OOP!
This might be the most confusing topic in Python OOP, understanding why you BOTH need static methods and class methods!
We are also going to learn how to handle our data outside of our Python code, which will be very useful for us.
#PythonOOP #Python #StaticandClassMethods
☕ Buy me a coffee: https://www.buymeacoffee.com/jimsc
Connect with me with:
Instagram: / jimshapedcoding
E-mail: [email protected]
Twitter : / jimshapedcoding
Discord : / discord
🔥 Comment below if you want to see more videos in that style
👍 Subscribe to start your Python Developer / DevOps Engineer journey here:
/ @jimshapedcoding
Links:
Repository:
https://github.com/jimdevops19/PythonOOP
My Personal website:
http://jimshapedcoding.com
The CSV Content I copied and pasted: (PLEASE NOTE, WHITESPACES CAN SCREW THINGS UP)
name,price,quantity
"Phone",100,1
"Laptop",1000,3
"Cable",10,5
"Mouse",50,5
"Keyboard",75,5
Timeline of the video:
00:00 - 07:46 - What Problem does Class Methods solve? & How to maintain your data as CSV files?
07:47 - 13:20 - Creating a useful Class Method
13:21 - 19:21 - Creating a useful Static Method
19:22 - 24:19 - When to use Class Methods and when to use Static Methods?