No video

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

  Рет қаралды 5,954

k0nze

k0nze

Күн бұрын

Пікірлер: 19
@estevaoyt
@estevaoyt 6 ай бұрын
Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!
@k0nze_builds
@k0nze_builds 6 ай бұрын
Glad it was helpful!
@elias6406
@elias6406 4 ай бұрын
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.
@JefferyHarrold
@JefferyHarrold 6 ай бұрын
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 6 ай бұрын
You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.
@danielschmider5069
@danielschmider5069 4 ай бұрын
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?
@DominikJagoda
@DominikJagoda 2 ай бұрын
Nice explanation, thanks !
@adeolaogunleye7965
@adeolaogunleye7965 2 ай бұрын
Nice video, I really enjoyed it.
@dhananjayharidas4327
@dhananjayharidas4327 Ай бұрын
Great explanation
@sharimiqbal5803
@sharimiqbal5803 Ай бұрын
What ide you are using?
@mariuszdrabik7119
@mariuszdrabik7119 6 күн бұрын
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
@2sourcerer
@2sourcerer 2 ай бұрын
Doesn't quite explain what "ABC" is for. Removing it doesn't break things.
@2sourcerer
@2sourcerer 2 ай бұрын
Oh i see, that abstractmethod decorator has no effect unless subclassing an ABC. But still doesn't explain why the Animal class needs it.
@amersulaiman1827
@amersulaiman1827 Ай бұрын
It makes the class abstract, so it can't create an object feom it directly, but from another class that inherits it
@ajaynarayanan2326
@ajaynarayanan2326 2 ай бұрын
Nice video
@godray25
@godray25 2 ай бұрын
🖥
@pepijnkrijnsen4
@pepijnkrijnsen4 3 ай бұрын
💻
@esbee296
@esbee296 3 ай бұрын
🖥
@jmcoxD
@jmcoxD 3 ай бұрын
🖥
Python Decorators: The Secret to Supercharging Your Code
20:53
When to use Traits, Interfaces, and Abstract Classes in PHP
15:08
Andrew Schmelyun
Рет қаралды 19 М.
Кадр сыртындағы қызықтар | Келінжан
00:16
Whoa
01:00
Justin Flom
Рет қаралды 41 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,7 МЛН
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 98 М.
Protocols vs ABCs in Python - When to Use Which One?
15:31
ArjanCodes
Рет қаралды 35 М.
How To Create Decorator Functions In Python
4:59
Taylor's Software
Рет қаралды 6 М.
Master Golang with Interfaces
21:54
Kantan Coding
Рет қаралды 11 М.
10 Nooby Mistakes Devs Often Make In Python
24:31
Indently
Рет қаралды 60 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 108 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 201 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16