Select true statements. (select three) a. Special methods have names that begin and end with double underscores.
Select true statements. (select three)
a. Special methods have names that begin and end with double underscores.
b. A special method is a method that is defined outside the body of a class.
c. A special method is a method that is implicitly called by Python to perform a specific operation. For example, such as addition, subtraction, extended assignment, etc.
d. Special methods are commonly called magic methods.
1 Answers
a. Special methods have names that begin and end with double underscores.
c. A special method is a method that is implicitly called by Python to perform a specific operation. For example, such as addition, subtraction, extended assignment, etc.
d. Special methods are commonly called magic methods.