Quiz on Getting More Out of Our Objects with Descriptors
Test your understanding of creating descriptors to gain more from objects.
We'll cover the following...
1
(Select all that apply.) Which statements are true for the __get__ method?
A)
The parameter instance in the signature of the method is the object over which the descriptor is taking action.
B)
The signature of the method is:
__get__(self, owner, instance).
C)
Parameter instance is the class of owner, both of which are present in the signature of the __get__ method.
D)
Parameter owner is the class of instance, both of which are present in the signature of the __get__ method.
Question 1 of 50 attempted
Ask