If a member is named _memberName in a Python class, it is conventionally considered to be _______.
- Private
- Protected
- Public
- Static
If a member in a Python class is named with a single underscore prefix (e.g., _memberName), it is conventionally considered a private member.
Loading...
Related Quiz
- What happens when a function doesn't have a return statement?
- In Python, which loop is used to iterate over a sequence of elements?
- What would be the result of attempting to import a module that does not exist?
- In Python, a class member prefixed with two underscores, such as __memberName, is conventionally considered as _______.
- In Python, a dictionary can use immutable data types, like strings and tuples, as keys but not _______.