For example:
class A:
factor = 2
def salary(self):
base_sal = 10000
sal = base_sal*factor
print("Your Salary:",sal)
@classmethod
def inc_factor(cls):
cls.factor += 0.1
def increase_factor():
A.factor += 0.1
Why can't we just use A.increase_factor() rather than using the @classmethod as it will only function inside the A class and why is worth passing class argument for doing the same as normal method?