Python Programming - Decorators - Discussion

Discussion Forum : Decorators - General Questions (Q.No. 14)
14.
Which decorator is used to declare abstract methods in a Python class?
@abstractmethod
@staticmethod
@classmethod
@property
Answer: Option
Explanation:
The @abstractmethod decorator is used to declare abstract methods in an abstract base class, indicating that concrete subclasses must implement these methods.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.