Herança: Como Criar uma Classe Filha em Python

This video is an excerpt from a lesson in the complete Python course. IMPORTANT LINKS: Complete Python Course — Part 1:    • Curso de Python Completo | Do Zero ao Proj...   Complete Python Course — Part 2:    • Curso de Python Completo | Parte 2: Try Ex...   Complete lesson from which this excerpt was taken (Classes):    • Classes em Python | Programação Orientada ...   In this video, you will learn how inheritance works in Python within object-oriented programming. We start by creating a Desktop class, with a docstring, _init_ method, attributes such as brand, year of manufacture, and hours of use, as well as methods to display the description, show hours of use, and update those hours. Then, we move on to the concept of inheritance, creating a child class called Notebook, which inherits attributes and methods from the parent class Desktop. During this lesson, you will understand how to use `super().__init__()` to reuse the parent class constructor, how to add new specific attributes to the child class, and how to create new methods for more specific objects. We will also see practical examples of object creation, attribute access, method calls, and troubleshooting related to the use of `self`. This video is an excerpt from a lesson in the complete Python for Beginners course.