Which of the following is the correct way to call the private method, myPrivateMethod(), in class MyClass, using dir(obj)?
class MyClass:
def __myPrivateMethod(self):
print "Private Method"
obj = MyClass()
print dir(obj)
Correct Answer: _MyClass__myPrivateMethod
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions