Q. Which decorator marks an abstract method?

A
@abstractmethod
B
@staticmethod
C
@classmethod
D
@method
Solution:

@abstractmethod from abc marks a method as abstract, requiring implementation.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!