1
Object-Oriented Programming
medium
Refer to the exhibit. What will be the output?
Exhibit
class MyClass:
def __init__(self):
self.__private = 10
obj = MyClass()
print(obj.__private)PCAP
Full exam simulation
Object-Oriented Programming
Refer to the exhibit. What will be the output?
class MyClass:
def __init__(self):
self.__private = 10
obj = MyClass()
print(obj.__private)