Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPython__slots__ layoutSingle-choice MCQ

Class A defines __slots__ and subclass B inherits from A but declares no __slots__ of its own. What is true of instances of B?

class A: __slots__ = ('x',) class B(A): pass b = B()