Question 7 (Intermediate):
What does the
A) Converts a method into a read-only attribute
B) Marks a function as a class method
C) Enforces type checking on variables
D) Makes a method private
#Python #OOP #Decorators #Intermediate
✅ By: https://yangx.top/DataScienceQ
What does the
@property
decorator do in Python? A) Converts a method into a read-only attribute
B) Marks a function as a class method
C) Enforces type checking on variables
D) Makes a method private
#Python #OOP #Decorators #Intermediate
✅ By: https://yangx.top/DataScienceQ