Oct-31-2019, 12:03 PM
(Oct-30-2019, 06:24 PM)ndc85430 Wrote: Methods need to be declared withself
as the first parameter, e.g.class Foo: def bar(self): pass f = Foo() f.bar()
Yes, with self as argument it is working. That being said, Is it necessary to have all the class methods should have at least 1 argument (self) in our case. Can't we have no arguments ?