Examveda

What is the role of the @abstractmethod decorator in Python?

A. Define abstract classes

B. Define instance methods

C. Mark a method as abstract

D. Control method access

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators