I would like to create a class in Python that manages above all static members. These members should be initiliazed during definition of the class already. Due to the fact t
person class with add() @classmethod
class Person: def __init__(self,a,b): self.first = a self.second = b @classmethod def add(cls,a,b): return a+b def __repr__(self): return ('{}'.format(Person.add(self.first,self.second))) p = Person(10,20) print(p) o/p : 30