Examveda

How can you create a private attribute in a Python class?

A. By prefixing the attribute name with an underscore (_)

B. By using the private keyword

C. By using the hidden keyword

D. By using the secure keyword

Answer: Option A


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python