Examveda

What is the primary use of the @final decorator in Python?

A. Mark a method as final

B. Prevent class inheritance

C. Mark a class as final

D. Mark a variable as final

Answer: Option D


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators