Python Tutorial 25 - Abstraction in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @ramyasrinivas5362
    @ramyasrinivas5362 ปีที่แล้ว +1

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

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You are most welcome

  • @vaniram4696
    @vaniram4696 ปีที่แล้ว +2

    Super explanation , thank you so much !!

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You are welcome!

  • @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?

  • @arpitakale5281
    @arpitakale5281 ปีที่แล้ว +2

    Informative video

  • @akdvlog
    @akdvlog 2 ปีที่แล้ว +1

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

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Glad to hear that

  • @vijayaaiella9287
    @vijayaaiella9287 4 ปีที่แล้ว +2

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

  • @SwethaSwe-ye6lj
    @SwethaSwe-ye6lj 5 หลายเดือนก่อน +1

    Superb explanation ☺️

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

      Thank you

  • @rajeshdammalapati3988
    @rajeshdammalapati3988 4 ปีที่แล้ว +1

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

  • @suhasbhoir22
    @suhasbhoir22 2 ปีที่แล้ว +1

    Perfect explained

  • @Addistoday
    @Addistoday ปีที่แล้ว +1

    thanks❤❤

  • @mr.engineer
    @mr.engineer 2 ปีที่แล้ว +1

    Perfect Video 🤩🥰

  • @madanmaram276
    @madanmaram276 3 ปีที่แล้ว +1

    what an explanation Sir Ji, Thank you

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You’re welcome

  • @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

  • @mohdsafeerkhan
    @mohdsafeerkhan 4 ปีที่แล้ว +1

    thank you sir for a clear cut explanation

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You are welcome

  • @ashasaha3790
    @ashasaha3790 3 ปีที่แล้ว +1

    very good explanation!!! thank you

  • @bhujathasoorishetty9700
    @bhujathasoorishetty9700 4 ปีที่แล้ว +1

    Thank you Pavan. Helps a lot

  • @ravali3917
    @ravali3917 2 ปีที่แล้ว +1

    Thank you sir.

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Most welcome

  • @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.

  • @rubi2836
    @rubi2836 ปีที่แล้ว +1

    Thank you

  • @Addistoday
    @Addistoday ปีที่แล้ว +1

    ❤❤❤❤❤❤❤

  • @arunpundir4409
    @arunpundir4409 4 ปีที่แล้ว +1

    Great explanation with examples. 👌

  • @Techonly28
    @Techonly28 4 ปีที่แล้ว +1

    Superb explanation

  • @hacninetushar
    @hacninetushar 4 ปีที่แล้ว

    Great!You make it so easy.

  • @barshabhattacharjee6788
    @barshabhattacharjee6788 4 ปีที่แล้ว

    For more visit: th-cam.com/video/q2RgFH1rPos/w-d-xo.html

  • @vinayanaveni250
    @vinayanaveni250 4 ปีที่แล้ว +1

    Tq sir
    Neat explanation 🙂

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You're most welcome

  • @ProudIndian131
    @ProudIndian131 4 ปีที่แล้ว +1

    Very nice video

  • @sunny13sohom
    @sunny13sohom 4 ปีที่แล้ว

    Very nicely explained Sir.

  • @ИльясУсербаев-ш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.

  • @julies5085
    @julies5085 5 ปีที่แล้ว

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

  • @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????????

  • @parushgera610
    @parushgera610 3 ปีที่แล้ว +1

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

  • @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.

  • @nirajanbhattarai5326
    @nirajanbhattarai5326 5 ปีที่แล้ว +1

    Nice!

  • @rohitraut3302
    @rohitraut3302 4 ปีที่แล้ว

    what is difference between abstract method and abstractclassmethod

  • @uxruslan
    @uxruslan 3 ปีที่แล้ว +1

    thank you sir :::::::

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Most welcome

  • @racharlasumanth5913
    @racharlasumanth5913 4 ปีที่แล้ว

    Good explanation

  • @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.