0
Which method will be executed first
class Sample: @staticmethod def sample(self): return("static method") @classmethod def sample(self): return("class method") print(Sample.sample)
1 ответ
+ 1
only the class method will be executed because it was declared last.