Python Interfaces and Abstract Base Class (ABC): A Must-Know for Advanced Programmers

preview_player
Показать описание
Take your Python programming skills to the next level with this must-know topic: interfaces and abstract classes. Learn how to implement these important concepts in your code and become a more advanced programmer. We cover everything from basic syntax to real-world applications. Don't miss out on this essential tutorial!

⏰ Timestamps:
0:00 Intro
0:35 Interfaces in Object-oriented Programming
1:35 Abstract Classes in Object-oriented Programming
2:13 Why Python doesn't have Interfaces and Abstract Classes
3:11 Python Duck-typing
4:55 Duck Test
5:51 Implementing an Abstract Class in Python
7:44 Implementing an Interface in Python
9:45 Outro
Рекомендации по теме
Комментарии
Автор

Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!

estevaoyt
Автор

The Talking interface and associated implemented Talking class...them having the same name and working, was that just a quirk of Python that shouldn't be encouraged because it will probably be fixed at a later date?
Looking at the autocomplete prompts that were coming up, probably from practicing, was the implemented Talking class supposed to be called TalkingDog?

JefferyHarrold
Автор

I honestly don’t understand you don’t many views. I enjoyed your explanation. I would like to see a complete tutorial especially on oop and design patterns.

elias
Автор

Giving the interface and the class the same name was weird, I was really surprised this actually worked! Is it because the Talking Class is defined later (further down) in the code?

danielschmider
Автор

Cool content, I'm new on Phyton but in my minimal experience with this language I've noticed that, in comparison with other languages, there's a lot of errors than may happen at runtime. Unfortunately, the lang is used in a lot of areas and it's important to learn it.

jorgesegundorojas
Автор

Why not use something like this: IsTalking(ABC) and class Dog(Animal, IsTalking)? This would be more logical, and super is not needed in the child class if there are no changes to the class fields

mariuszdrabik
Автор

Doesn't quite explain what "ABC" is for. Removing it doesn't break things.

sourcerer