Why are they called magic methods? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Why are they called magic methods?

5th Aug 2018, 10:30 AM
B.D
B.D - avatar
3 Réponses
+ 4
Because they add functionality in our code and start and end with double underscore.
5th Aug 2018, 4:41 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Because it's catchy I'd say. ;-)
5th Aug 2018, 12:40 PM
HonFu
HonFu - avatar
0
What methods do you refer to?
5th Aug 2018, 10:42 AM
Amir Galanty
Amir Galanty - avatar