Oct-31-2019, 01:52 PM
(Oct-31-2019, 12:03 PM)dataplumber Wrote:(Oct-30-2019, 06:24 PM)ndc85430 Wrote: Methods need to be declared withYes, 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 ?self
as the first parameter, e.g.class Foo: def bar(self): pass f = Foo() f.bar()
Thank you. That Answers my question.