Question 7
Back to Exercise
Inside class Account, self.__pin = 1234 is stored under which name?
- A __pin
- B pin
- C _Account__pin Correct
- D Account.pin
Correct Answer: Option C
Name mangling prefixes the class name. It prevents accidental clashes, not deliberate access.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!