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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025

ความคิดเห็น • 29

  • @amirahassan1852
    @amirahassan1852 11 วันที่ผ่านมา

    Thank you for that beautiful explanation, I really don't understand how your channel got only 4.92K subscribers. Keep up the good work.

  • @JefferyHarrold
    @JefferyHarrold 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน +3

      You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.

  • @anujonthemove
    @anujonthemove 3 หลายเดือนก่อน

    🖥️ Very clearly explained. The best part is that you did not directly jump into explaining abstract classes but gave a context about how things work in different languages and in what ways python is different.

  • @nandans2506
    @nandans2506 21 วันที่ผ่านมา +1

    New to python. Slowly figuring out how python was never meant for extensible, maintainable large projects. It's more like a overgrown scripting language

  • @danialvitamin1646
    @danialvitamin1646 หลายเดือนก่อน

    i subscribed as soon as i saw that lovely cup of tea xD

  • @estevaoyt
    @estevaoyt 11 หลายเดือนก่อน +1

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

    • @k0nze_builds
      @k0nze_builds  11 หลายเดือนก่อน +1

      Glad it was helpful!

  • @kyriekwsta770
    @kyriekwsta770 หลายเดือนก่อน

    You didn't disguise the cat as a duck. You called cat.meow() and the cat meowed. then you called make_it_quack(cat) the first time and it didn't give an error, cause the counter was 0. so the first make_it_quack(cat) increases the counter by 1. the second one gives an error, because cat is no duck. Am I missing something?

  • @danielschmider5069
    @danielschmider5069 9 หลายเดือนก่อน

    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?

  • @elias6406
    @elias6406 9 หลายเดือนก่อน

    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.

  • @adeolaogunleye7965
    @adeolaogunleye7965 8 หลายเดือนก่อน

    Nice video, I really enjoyed it.

  • @jorgesegundorojas6119
    @jorgesegundorojas6119 4 หลายเดือนก่อน

    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.

  • @dhananjayharidas4327
    @dhananjayharidas4327 6 หลายเดือนก่อน

    Great explanation

  • @ddevarapaga5134
    @ddevarapaga5134 2 หลายเดือนก่อน

    NIce thanks for the video

  • @sharimiqbal5803
    @sharimiqbal5803 6 หลายเดือนก่อน

    What ide you are using?

  • @ajaynarayanan2326
    @ajaynarayanan2326 8 หลายเดือนก่อน

    Nice video

  • @mariuszdrabik7119
    @mariuszdrabik7119 5 หลายเดือนก่อน

    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 7 หลายเดือนก่อน +2

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

    • @2sourcerer
      @2sourcerer 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน +3

      It makes the class abstract, so it can't create an object feom it directly, but from another class that inherits it

    • @UplandBill
      @UplandBill 23 วันที่ผ่านมา

      Explained at 8:36

  • @esbee296
    @esbee296 9 หลายเดือนก่อน

    🖥

  • @pepijnkrijnsen4
    @pepijnkrijnsen4 8 หลายเดือนก่อน

    💻

  • @Yuenchanting
    @Yuenchanting 2 หลายเดือนก่อน

    Worst

  • @jmcoxD
    @jmcoxD 8 หลายเดือนก่อน

    🖥

  • @godray25
    @godray25 8 หลายเดือนก่อน

    🖥

  • @rezagh5438
    @rezagh5438 หลายเดือนก่อน

    🖥