What is the output of the following code ? class A: @classmethod def getC(self): print(‘In Class A, method getC.’) class B(A): pass b = B() B.getC() b.getC()

QuestionsCategory: Python 3What is the output of the following code ? class A: @classmethod def getC(self): print(‘In Class A, method getC.’) class B(A): pass b = B() B.getC() b.getC()
admin Staff asked 3 years ago

Answer: In Class A, method getC.
In Class A, method getC.