I have two python files as
one.py
class FirstClass:
@classmethod
def myClass(cls,first, second):
return first+second
two.py
from one import FirstClass
class SecondClass:
@classmethod
def herClass(cls, val1, val2):
FirstClass.myClass(val1,val2)
ob = SecondClass()
print(ob.herClass(2,3))
How can I access the classmethod of one class from the classmethod of another class. If not possible, what might be the possible solution. FirstClass needs to remain same, I have flexibility changing the method type on SecondClass.