0

How to create a magic method ?

There are many built in magic method are there just like function. _add_ , _sub_ , _mul_ , _mod_ , ..... I know how to use magic methods.Like user defined functions how can we create user defined magic methods so that we import and use in many classes. eg _new_

23rd Nov 2020, 5:14 AM
Rajan K
Rajan K - avatar
1 Odpowiedź
0
First share your practice where you've tried.
25th Nov 2020, 5:02 PM
Ankit Sharma
Ankit Sharma - avatar