Question OOP-ABS-0064
HardWhat is the output of this code?
from abc import ABC, abstractmethod
class A(ABC):
@property
@abstractmethod
def name(self): ...
class B(A):
name = "bee"
print(B().name)
- A.
TypeError
- B.
name
- C.
bee
- D.
None
Sign up free to see the answer and a step-by-step explanation.