0
Why make classes act like containers through magic methods?
What advantages are there for making classes act like containers by using magic methods?
2 Respuestas
0
Custom behavior for the spcific dataset.
0
(2,3) + (2,4)....at first the computer does not know what the add operator does in this case..
so you can use magic methods to redefine what add means in the case of adding points