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

Published: 01 January 1970
on channel: Python Simplified
127,532
5k

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:
   • Python Classes and Objects - OOP for ...  
⭐ Forest of Objects OpenCV Exercise:
   • Draw a Forest of Random Tree Objects ...  

⌚ 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 🙏


Watch video OOP Class Inheritance and Private Class Members - Python for Beginners! online without registration, duration hours minute second in high quality. This video was added by user Python Simplified 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 127,532 once and liked it 5 thousand people.