Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonclassmethod vs staticmethodSingle-choice MCQ

Given the inheritance below, what does `D.who()` return?

class B: name = 'B' @classmethod def who(cls): return cls.name class D(B): name = 'D' print(D.who())