Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!
@k0nze_builds6 ай бұрын
Glad it was helpful!
@elias64064 ай бұрын
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.
@JefferyHarrold6 ай бұрын
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_builds6 ай бұрын
You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.
@danielschmider50694 ай бұрын
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?
@DominikJagoda2 ай бұрын
Nice explanation, thanks !
@adeolaogunleye79652 ай бұрын
Nice video, I really enjoyed it.
@dhananjayharidas4327Ай бұрын
Great explanation
@sharimiqbal5803Ай бұрын
What ide you are using?
@mariuszdrabik71196 күн бұрын
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
@2sourcerer2 ай бұрын
Doesn't quite explain what "ABC" is for. Removing it doesn't break things.
@2sourcerer2 ай бұрын
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Ай бұрын
It makes the class abstract, so it can't create an object feom it directly, but from another class that inherits it