Q11
What is a decorator used for in advanced OOP?
A.
Adding new attributes to classes
B.
Defining new classes
C.
Modifying methods or functions behavior
AnswerD.
Creating abstract classes
Answer: Option C
Solution
Answer: Option C
Solution:
Decorators are often used to modify the behavior of methods or functions in advanced OOP.