Question OOP-ABS-0029
EasyIn Python, which decorator marks a method as abstract?
- A.
@virtual
- B.
@abstractmethod
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
In Python, which decorator marks a method as abstract?
@virtual
@abstractmethod
Sign up free to see the answer and a step-by-step explanation.
@abstract
@interface