Question OOP-ABS-0037
EasyWhat is the output of this code?
from abc import ABC, abstractmethod
class Shape(ABC):
@abstractmethod
def area(self):
pass
try:
Shape()
print("created")
except TypeError:
print("TypeError")
- A.
None
- B.
created
- C.
Sign up free to see the answer and a step-by-step explanation.