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 ❤️
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()
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.
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.?
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 ❤️
Great to hear!
you are great person and words are not enough to thank you. Much love and respect from Ethiopia🇪🇹🇪🇹🇪🇹
Thanks
Thank you so much sir... Super lecture
you're welcome
Thank you sir for such a nice explanation .You are a wonderful teacher.
Welcome
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()
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.
constructor with parameters instead of arguments...arguments are passing when we creating the object..if i am not wrong
Your explanation is crystal clear. Could you plz provide selenium python keyword driven framework and hybrid framework videos also?
U r awesome
Thanks
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.?
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.
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
Plz start selenium using python tutorials...
Starting soon