Vidyalelo
Python · Q11

Advanced OOP Concepts

Programming · Python · question 11

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
Answer
D.
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.