Aug-11-2018, 09:37 AM
(This post was last modified: Aug-11-2018, 09:38 AM by yksingh1097.)
I was just reading this thread to answer it and a question raised in my mind(learning python as well) that,
we can call eat() like this
we can call eat() like this
Animal().eat()but why we can't call eat() like this
Animal.eat()why do we need to pass self
Animal.eat(self)