2 odpowiedzi
0
Hi Pranjith, "magic methods" or "dundre methods" are just methods like any others... but they have a "special name" and are called with a "special format".
In the name, they have a double underscore in both side (__add__ , __init__).
And when you call they, will use the special format, so "__add__" will be "+", and "__sub__" will be "-"...