Python Tutorial 20 - Class and Object in Python | Part-2

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

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

  • @Anonymous60935
    @Anonymous60935 2 года назад +3

    It's been almost 7 years in manual testing. Planned to switch to automation luckily got ur channel. Your lectures are crystal clear. Thank you so much sir we need teacher like u..lectures are clear as well as interesting. God bless u sir ❤️

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

    you are great person and words are not enough to thank you. Much love and respect from Ethiopia🇪🇹🇪🇹🇪🇹

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

    Thank you so much sir... Super lecture

  • @anuradhakumari6123
    @anuradhakumari6123 3 года назад +2

    Thank you sir for such a nice explanation .You are a wonderful teacher.

  • @kittuYadav-r6b
    @kittuYadav-r6b 2 года назад

    Thank you for your wonderful nonprofit knowledge rendering.
    Create a method in the same class and then create an object for the class. Now call the method using the object and you get what is present in the class. Now when del is used on the object and then call the method using the object again you get an exception because the object is deleted.
    class MyClass:
    def __del__(self):
    print('Destroyed')
    def m1(self):
    print('method 1')
    c1 = MyClass()
    c1.m1()
    del c1
    c1.m1()

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

    In last, destroyed should print two times. Its not any issue.
    In python, __del__ will act as destructor.
    The destructor was called after the program ended or when all the references to object are deleted.

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

    constructor with parameters instead of arguments...arguments are passing when we creating the object..if i am not wrong

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

    Your explanation is crystal clear. Could you plz provide selenium python keyword driven framework and hybrid framework videos also?

  • @syedashfaq1756
    @syedashfaq1756 5 лет назад +2

    U r awesome

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

    First thanks a million for the nice explanations.
    My question is :
    How can "__str__" is returning the empsalary and empid though they are integer values.?

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

      not sure, but I think it is because of the string formatting used while returning the value. Do let me know if you know the right answer.

  • @Amandeep-ky9dq
    @Amandeep-ky9dq 3 года назад

    Sir i want to earn python from you ...can u plz tell me if you take live classes for this...and where I can connect with you

  • @shuvendratripathy2483
    @shuvendratripathy2483 6 лет назад

    Plz start selenium using python tutorials...