OOP Class Inheritance and Private Class Members - Python for Beginners!

preview_player
Показать описание
Hi everyone! today we will do a quick classes and objects exercise!
We will practice everything we've learned in previous tutorials and we will also talk about:
🐍 class inheritance
🐍 private class members... and why they're not exactly private in Python 😅
🐍 in the very end - tips of how to avoid repetition!

In our exercise - we own a guitar store and we need to find a way to keep track of our inventory.
So through a variety of real-life examples, we will discover all the qualities of classes along with their significance!
You can either follow along in your IDE or you can:

⭐ Clone My Tutorial Code ⭐
** Sorry code is unavailable, RIP Wayscript 😭😭😭**

If you have any questions - please leave me a comment below and I'd love to help! 😊

🛑 PREVIOUS TUTORIALS 🛑
_____________________________
⭐ Objects and Classes for Beginners:
⭐ Forest of Objects OpenCV Exercise:

⌚ TIME STAMPS ⌚
_____________________________
00:00 - intro
00:22 - init method
00:35 - attributes
01:26 - methods
01:49 - function vs method
02:57 - call method on object
03:13 - call method inside init
04:02 - class inheritance
05:09 - parent and child classes
06:15 - child methods
07:02 - replace child attributes
09:04 - private members
10:14 - bypass private members
11:42 - private methods
13:01 - tips to avoid repetition
15:52 - thanks for watching!

🙏 THANKS FOR WATCHING 🙏
Рекомендации по теме
Комментарии
Автор

I'll be honest I thought she was classic click bait: hot chick + interesting topic = views, but she does break down the core concepts in an easy and engaging way.

Kiteboarding
Автор

You present complex programming topics in an easier way so much so that newbies understand the concepts explained.

TomkinsOkello
Автор

As just as what Albert Einstein said "If you can't explain it simply, you don't understand it well enough." I was struggling with the OOP and you simply nailed it for me. Thank you so much. looking forward to see more videos from you !.

artaniskim
Автор

Thank god there is this beautiful angel to learn from because I’m tired of indie voices

Subconscious
Автор

Amazing. You took 12 minutes to clearly explain what I've spent 2 days trying to get my head around. I've got it!
You have a real talent for teaching. :-)

RicCarden
Автор

This is so much more understandable than my university lessons. Thank you so much!

tiramercu
Автор

This was perfect for beginners like me, I combined this with the free practice exam and study guides i found on Learnology World, although those materials were useful for me to prepare for the type of exam questions that i should be expecting in the exam, these video was good in helping me understand the course better, all essential topics was mentioned. thank you very much ❤ i really appreciate

echzfth
Автор

The best python YouTuber I would personally recommend... The simpler it is explained.. The simpler it is even to grasp and execute... Keep it up

tastonic
Автор

One small tutorial has done more than all the other lessons in the last 6 months! Thanks!!!

romanhaskelsky
Автор

This was a great tutorial for me. It so happened to be that I new these things and I never new where to use and why to use.

The best part is I'm a bass guitarist, the examples you took are really striking to me. Also the song "House of the rising sun" is a song that my brother and I use to play instrumental on.

suvimpemel
Автор

As a guitar player, this is the best example to learn classes and inheritance in Python. Thank you very much.

americovaldazo
Автор

Dudeee till now i was struggled on OOP. It's mad how simply you explain these stuffs great work no words to explain woaaah. Continue the good work

SLTechnologyBest
Автор

I have read and watched other explainations on this topic. By far, this was the best explaination with easy examples. I have the basic and always felt like the intermediate topics are not covered quite as well or often. Thank you for your dedication.

sgarrison
Автор

I'm a professional (senior) programmer with 5 years of experience of writing production quality code, still i find this tutorial refreshing.

nikolayhodyunya
Автор

I have beeb quite awhile learning python. YOU are the best tutorial person that I have experienced teaching python and more. and you are the smart, everybody should learn from you.

eduarmafla
Автор

I've learned Python for work and have been using it regularly for work projects.

I just gotta say, even watching these beginner videos again after some time is teaching me new things. She's dropping little nuggets here and there that explains so much that I didn't fully understand until getting more familiar with OOP.

Absolutely gold. And she's great at breaking it down and explaining!

joereality
Автор

The best thing about your videos/explanation is that you make complex topics in programming such as OOP so much fun to watch and understand them clearly at the same time. It feels like learning when we were children.

mkhadka
Автор

Wow, I was struggling for few days to understand Classes in python.
In the beginning, I simply didn't watch your videos more than 1 minute bcoz I thought a hot chick trying to get some extra views.

But I saw your videos popping up multiple times and start watching complete videos.
Damn, she is one of the best python tutors out there.
All my doubts are clear now.
Thanks 🙏 for such amazing videos.

ryansh
Автор

Wow this really helped me understand classes as a whole a lot better across all languages. The examples you used were so much better than (pet eat or family cat or whatever I usually see) thanks!

freedtmg
Автор

Nice explanation on inheritance! Needed this for my test today too. Thanks 😊

NZarboristBryce