Python Tutorial 25 - Abstraction in Python

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 67

  • @vaniram4696
    @vaniram4696 Год назад +2

    Super explanation , thank you so much !!

  • @ramyasrinivas5362
    @ramyasrinivas5362 Год назад +1

    Have seen many videos abt abstraction … bt this one is the best .. tq so much sir

  • @jadejarahulsinh4389
    @jadejarahulsinh4389 3 года назад +5

    There is little confusion in the first slide itself.
    3rd point reads Abstract classes require subclasses to provide implementations for the abstract methods.
    4th point reads Subclasses of an Abstract class are not required to implement abstract methods.
    Both are opposite things. In 3rd point you are saying it is require to provide implementations but in 4th point, you are saying it is not required to provide implementations. So which is correct?

  • @akdvlog
    @akdvlog 2 года назад +1

    thanks for this video, It cleared my whole doubt for abstract class.

  • @arpitakale5281
    @arpitakale5281 Год назад +2

    Informative video

  • @vijayaaiella9287
    @vijayaaiella9287 4 года назад +2

    Excellent Mentor.....very experienced....thx for your contribution....

  • @suhasbhoir22
    @suhasbhoir22 2 года назад +1

    Perfect explained

  • @rajeshdammalapati3988
    @rajeshdammalapati3988 4 года назад +1

    Awesome explanation sir.....u showed teaching is not but giving clearity to student's....thank you for your contribution sir😍

  • @SwethaSwe-ye6lj
    @SwethaSwe-ye6lj 5 месяцев назад +1

    Superb explanation ☺️

  • @atyameswaravinash7735
    @atyameswaravinash7735 Год назад

    Usually,abstraction is the hiding the unwanted information and shows the relevant information from the abstract class..where can we implement the relevant information in abstract class

  • @madanmaram276
    @madanmaram276 3 года назад +1

    what an explanation Sir Ji, Thank you

  • @mr.engineer
    @mr.engineer 2 года назад +1

    Perfect Video 🤩🥰

  • @mohdsafeerkhan
    @mohdsafeerkhan 4 года назад +1

    thank you sir for a clear cut explanation

  • @blogsbarrel4734
    @blogsbarrel4734 3 года назад +1

    Sir, I really understood the explanation. But can you explain me a real scenario where abstract classes can be used. I mean if if don't wanna use it why would i create an abstract class. And again why would i create a new class and refer to the abstract class?
    What is the sense?
    Please explain a real scenario where this would be useful.

  • @ravali3917
    @ravali3917 2 года назад +1

    Thank you sir.

  • @ashasaha3790
    @ashasaha3790 3 года назад +1

    very good explanation!!! thank you

  • @Addistoday
    @Addistoday Год назад +1

    thanks❤❤

  • @bhujathasoorishetty9700
    @bhujathasoorishetty9700 4 года назад +1

    Thank you Pavan. Helps a lot

  • @rubi2836
    @rubi2836 Год назад +1

    Thank you

  • @Addistoday
    @Addistoday Год назад +1

    ❤❤❤❤❤❤❤

  • @umairbijapure7584
    @umairbijapure7584 4 года назад

    in the exapmle of m1 and m2....we are using object (obj=y() y.m1()) but it is not running right.......if we dont use "@abstractmethod" above def m1() and m2.......then it is running......so my quetion is there is no need of abstarction then why we are using it????????

  • @arunpundir4409
    @arunpundir4409 4 года назад +1

    Great explanation with examples. 👌

  • @hacninetushar
    @hacninetushar 4 года назад

    Great!You make it so easy.

  • @ИльясУсербаев-ш5р
    @ИльясУсербаев-ш5р 4 года назад

    certainly great explanation, but what we are learning it for? how can we use it ? and why?

    • @tuen8070
      @tuen8070 4 года назад +2

      You can describe with ABC your system without concentrating on implementation. It may be more faster to design your app. And next you'll implement real classes and methods by inherit it from ABC you describe before. That stage of development be more faster too, because you have a plan, you know what methods you need. Also you can use `typing` for type annotations to describe type of getting parameters and returning results.
      Thats may be absolutly unnecessary for smal projects, but if you designing large system it can make life a lot easier.
      Also in languages with strong typing you can't write good code without abstract classes an interfaces.

  • @vinayanaveni250
    @vinayanaveni250 4 года назад +1

    Tq sir
    Neat explanation 🙂

  • @julies5085
    @julies5085 5 лет назад

    Simple and clear explanation of concept. Towards the end could you mention what you said regarding usage in security?

  • @Techonly28
    @Techonly28 4 года назад +1

    Superb explanation

  • @rohitraut3302
    @rohitraut3302 4 года назад

    what is difference between abstract method and abstractclassmethod

  • @DrIlyas-sq7pz
    @DrIlyas-sq7pz 4 года назад

    Thank you sir. I have a question. How can we use more than one file for one program in Jupyter? like importing functions from another file. Putting classes and function in one file and function calls in another file.

  • @sunny13sohom
    @sunny13sohom 4 года назад

    Very nicely explained Sir.

  • @parushgera610
    @parushgera610 3 года назад +1

    God bless you! You have made my life easier now.

  • @ProudIndian131
    @ProudIndian131 4 года назад +1

    Very nice video

  • @uxruslan
    @uxruslan 3 года назад +1

    thank you sir :::::::

  • @nirajanbhattarai5326
    @nirajanbhattarai5326 5 лет назад +1

    Nice!

  • @racharlasumanth5913
    @racharlasumanth5913 4 года назад

    Good explanation

  • @barshabhattacharjee6788
    @barshabhattacharjee6788 4 года назад

    For more visit: ruclips.net/video/q2RgFH1rPos/видео.html

  • @rahulsethi3124
    @rahulsethi3124 4 года назад +3

    its not class variable ,,its instance variable

    • @ilyasovlyakuliev4638
      @ilyasovlyakuliev4638 3 года назад

      In the last example, we have set instance variable to be a class variable:
      def __init__(self, value):
      self.value=value #self.value indicates that variable belongs to class, as a result, instance value turned into class variable.
      However, at the end we used combination of both CLASS variable (100) along with INSTANCE variables (100, 10):
      class C(Cal)
      def add(self):
      print(self.value+100) #self.value is the CLASS variable and 100 is an INSTANCE variable
      def sub(self):
      print(self.value-10). #self.value is the CLASS variable and 10 is an INSTANCE variable
      cobj=C(100) #100 is the CLASS variable because it was assigned to be so in the constructor method self.value=value
      cobj.add()
      cobs.sub()
      To conclude this, I would say that you are partially right. In the last example, we used INSTANCE variables in conjunction with Class variable.