In this video, I'm diving into the topic of classes in Python. Python is an object-oriented programming language, which means that much of the code revolves around objects. We can create new types of objects by creating classes, and we can create new instances of those classes to use in our code.
In this video, I'm using the beach as an example class. I go over how to define a class, initialize it, and then add methods to the class. In addition, I demonstrate these concepts using examples and talk about how changing an attribute in one instance of a class does not change attributes in other instances necessarily.
I also talk about class variables vs instance variables and how they differ. I talk about how to customize an initialization function and pass in parameters in order to set the attributes and such. Fun stuff!
Other good resources to check out:
https://docs.python.org/3/tutorial/cl...
https://www.w3schools.com/python/pyth...
https://www.learnpython.org/en/Classe...
The goal of this video is to teach you how to start using classes!! :)
Feel free to leave any questions.
Please consider subscribing if you liked this video: https://www.youtube.com/c/ycubed?sub_...
Thanks for watching everyone!
~~~~~~~~~~~~~~~~~~~~~~~~
Follow me on Instagram: / kylieyying
Follow me on Twitter: / kylieyying
Check out my website: https://www.kylieying.com
Watch video Using Classes and Objects in Python | Learning Python for Beginners | Code with Kylie #9 online without registration, duration hours minute second in high quality. This video was added by user Kylie Ying 07 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 37,173 once and liked it 1.3 thousand people.