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

  Рет қаралды 2,048

k0nze

k0nze

Күн бұрын

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!
👉 Website Article for this Video: k0nze.dev/posts/python-interf...
🛍️ Get my Cheatsheets on Gumroad: k0nze.gumroad.com
💌 Support me on Patreon: / k0nze
☕️ Buy me Coffee: www.buymeacoffee.com/k0nze
🌍 Check out my Website: k0nze.dev
💻 Join our Discord: discord.k0nze.dev
👔 Follow me on LinkedIn: linkedin.k0nze.dev
⏰ 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

Пікірлер: 11
@adeolaogunleye7965
@adeolaogunleye7965 2 күн бұрын
Nice video, I really enjoyed it.
@estevaoyt
@estevaoyt 3 ай бұрын
Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!
@k0nze_builds
@k0nze_builds 3 ай бұрын
Glad it was helpful!
@godray25
@godray25 Күн бұрын
🖥
@elias6406
@elias6406 Ай бұрын
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.
@danielschmider5069
@danielschmider5069 Ай бұрын
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?
@JefferyHarrold
@JefferyHarrold 3 ай бұрын
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?
@k0nze_builds
@k0nze_builds 3 ай бұрын
You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.
@pepijnkrijnsen4
@pepijnkrijnsen4 22 күн бұрын
💻
@jmcoxD
@jmcoxD 24 күн бұрын
🖥
@esbee296
@esbee296 Ай бұрын
🖥
Python Decorators: The Secret to Supercharging Your Code
20:53
When to use Traits, Interfaces, and Abstract Classes in PHP
15:08
Andrew Schmelyun
Рет қаралды 15 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 42 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Ну Лилит))) прода в онк: завидные котики
00:51
Protocols vs ABCs in Python - When to Use Which One?
15:31
ArjanCodes
Рет қаралды 30 М.
Vectoring Words (Word Embeddings) - Computerphile
16:56
Computerphile
Рет қаралды 279 М.
Абстрактные классы в Python
12:35
Python Clinic
Рет қаралды 2,7 М.
10 Python Comprehensions You SHOULD Be Using
21:35
Tech With Tim
Рет қаралды 108 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 92 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 888 М.
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 196 М.
The Python Walrus Operator is Awesome!
13:41
k0nze
Рет қаралды 464
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 42 МЛН