Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonpropertySingle-choice MCQ

A subclass redefines an inherited property name as a plain class attribute. What does `Sub().v` return?

class Base: @property def v(self): return 1 class Sub(Base): v = 2 print(Sub().v)