Question: By doing this, you can hide a classs attribute from code outside the class. a. Avoid using the self parameter to create the attribute b.
By doing this, you can hide a class’s attribute from code outside the class.
a. Avoid using the self parameter to create the attribute
b. Begin the attribute’s name with two underscores
c. Begin the name of the attribute with private_ _
d. Begin the name of the attribute with the @ symbol
Step by Step Solution
3.44 Rating (173 Votes )
There are 3 Steps involved in it
The answer is b Begin the attributes name with two underscores To hide a classs attribute from code ... View full answer
Get step-by-step solutions from verified subject matter experts
