Examveda

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

D. Creating abstract classes

Answer: Option C

Solution (By Examveda Team)

Decorators are often used to modify the behavior of methods or functions in advanced OOP.

This Question Belongs to Python Program >> Advanced OOP Concepts

Join The Discussion

Related Questions on Advanced OOP Concepts

What is inheritance in OOP?

A. Creating new objects from existing ones

B. Allowing objects to share attributes and methods

C. Restricting access to object attributes

D. Converting classes into objects