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

1 Expert Approved Answer
Step: 1 Unlock

The answer is b Begin the attributes name with two underscores To hide a classs attribute from code ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Python Questions!