Object Oriented Programming is an important concept in software development. In this complete tutorial, you will learn all about OOP and how to implement it using Python.
💻 Code:
🔗 Tutorial referenced for a deeper explanation about __repr__:
✏️ Course developed by Jim from JimShapedCoding. Check out his channel:
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Getting Started with Classes
⌨️ (0:12:11) Constructor, __init__
⌨️ (0:50:35) Class vs Static Methods
⌨️ (1:13:22) Inheritance
⌨️ (1:30:14) Getters and Setters
⌨️ (1:51:00) OOP Principles
🎉 Thanks to our Champion and Sponsor supporters:
👾 Wong Voon jinq
👾 hexploitation
👾 Katia Moran
👾 BlckPhantom
👾 Nick Raker
👾 Otis Morgan
👾 DeezMaster
👾 AppWrite
—
Learn to code for free and get a developer job:
Read hundreds of articles on programming:
23 Comments
JimShapedCoding
3 years agoThanks a lot for posting this, FCC! ❤️
umer mirza
2 years agoPlease cover static variables and method inheritance on multilevel
Kevin Flynn
2 years agoThanks for the clever and very nice course.Dont you think that you use to much unnecessary prints at 20.32 mark ,i think its better to use "," or "n" for name,price, quantity instead ?So it would be 1 print for each item with information about name, quantity and price.
show more show lessSeferî Developer
2 years agoNice tutorial thanks but i think showing the wrong or missing example first is not a good idea.
Francisco Antonio Fuenzalida Acuña
2 years agowas specting the implementing of len
Me_ Debankan
2 years ago0:45
Vlad Morar
2 years agoMinute 1:53:11 – Why could you set price to be -900? We've got the Assert function in the class Item set to >=0.
show more show lessLE: If you set the price directly with " – " sign then you get the error. However, if you change it later on, it takes the value with " – ". Why is this?
Jack Drost
2 years agoSuperb presentation!
EZEKOMA UGOO
2 years agoSo educative. Thanks to the tutor.
Ayush Agrawal
2 years ago1:42:00 : I tried creating private attributes, but they are still accessible from instance level. I'm confused as in why is this happening? Its getting auto completed. Please help clarify.
Arena Osprey Film
2 years agoI have question with class method. So after u import and read the csv, we have a list of items right. But how do u use em now? Do I call em sth like item1=Item() for the Phone and then what’s next ??? Please explain further.
Kevin Lincoln
2 years agoLml he sounded frustrated during the intro lml what happened?
Celestin Balla
2 years agoif you know you know thank you sir
PRIYA SINGH
2 years agoThanks for this amazing tutorial, finally my oop concepts are getting cleared
Capitan Salam ➊
2 years ago1:02:22 i get:
price=float(item.get('price')),
ValueError: could not convert string to float: ''
Durgesh Kshirsagar
2 years agoWhat an excellent tutorial! Amazing man. You are a wonderful teacher. Hats off to you. God bless you!
Megh M
2 years agohow is _repr_ returning a list? return value is string right
A Guy
2 years agoVery good tutorial
Harsh Codes
2 years agoThank you very much , was really very helpful
jay soni
2 years agoType Validation at 26:11 doesn't works for me!!
I get no errors !!
could you may be help me out with it?
Simon Chong
2 years agoI noticed I am able to run the code flawlessly when only with:
def instantiate_from_csv():
without define it as @classmethod and takes no argument, is that normal?
Thanks in advance
amit atom
2 years agoVery nice..
Ahiamata mawuli
2 years agoThanks for this course❤🙏