205,707 views
CLICK HERE TO LEARN MORE ABOUT THE AWESOME COMPLETE PYTHON COURSE: https://lp.hashtagtreinamentos.com/es... TO DOWNLOAD THE FREE PYTHON MINI COURSE: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- ► Python Series - Creating Games - Creating Websites with Django: https://pages.hashtagtreinamentos.com... ► Object Orientation Video: • What is Object Orientation in Python... ► PyCharm Installation Video: • How to Install PyCharm on Windows - ... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/c... ----------------------------------------------------------------------- Hey Guys! Today I want to show you an introduction to creating classes in Python so that you can understand how these classes work. In this class, we will work with object-oriented programming, so this knowledge will be very important for you to understand classes. Having this knowledge of object orientation in Python (we have videos on the subject here on the channel) already makes it easier to understand self and init in Python. Whenever you create a class, you will have to use the init function, which is to initialize this class, that is, to insert the characteristics of the class. To create the functions of our object, we will use the methods of the class, so we will be able to create objects in Python with their characteristics and functions. The first example we use is of the remote control, so we have the characteristics of this control as well as the functions of the control, which are the actions of each button. Later, we will have another practical example of classes in Python so that you can consolidate your knowledge and start using object orientation in your larger projects! Remember that we are using the Python editor PyCharm, because it ends up helping and even inserts the (self) automatically so that you don't forget! ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click the bell)! ► Like our video! ----------------------------------------------------------------------- Social Networks ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos of the Hashtag Programming channel we teach several Python tips so that you can develop in this programming language! ----------------------------------------------------------------------- #python #hashtagprogramacao