@abstractmethod explained in Python

preview_player
Показать описание
In this video I'm going to be showing you how you can use @abstractmethod in Python! Very useful for when you are dealing with abstract classes.

▶ Become job-ready with Python:

▶ Follow me on Instagram:
Рекомендации по теме
Комментарии
Автор

Your videos are great. For a self taught coder like, this is helping a lot.

ahmadfaraz
Автор

The only problem is that cats don't make sounds when they move. I had a bell collar on my cat for years and the only time it made a sound was when she ran somewhere. However, 99% of the time, unless I was looking at her, she never ran anywhere. She was the most ninja cat I've ever had and I can't remember a single time when I heard her coming if I wasn't looking at her first.

anon_y_mousse
Автор

Is an abstract method something like an interface?

jorge.barcelos
Автор

I would love a tutorial for the whole abc thing and it's really confusing with the typing module protocols. I also kinda want one for metaclasses.

Nafee_Gaming
Автор

If you don't use the @abstractmethod before the methods, then the class Cat wouldn't raise an error?

facilvenir