In Python, a class member prefixed with two underscores, such as __memberName, is conventionally considered as _______.

  • Private Member
  • Public Member
  • Protected Member
  • Hidden Member
In Python, a class member prefixed with two underscores (e.g., __memberName) is conventionally considered a "private" member. It's a way to indicate that the member should not be accessed directly from outside the class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *