Multiple Choice
Which of the following is the correct way to access private instance variable x in object a of type ClassA?
A) a.__x
B) a.__x__
C) a._ClassA__x
D) a.__ClassA__x
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q62: _ is a fundamental feature of object-oriented
Q63: There is no means in Python for
Q64: Name mangling occurs when the identifiers within
Q65: Match the descriptions with their terms:<br>-indicates the
Q66: _ and _ are methods providing controlled
Q68: _ is used in Python to indicate
Q69: For a class named FullName that contains
Q70: Interaction diagrams in UML are used to
Q71: Getters and setters are methods providing controlled
Q72: There can be multiple levels of subclasses