?
What is the output of the following code:
What is the output of the following code:
class Parent:
x = 10
class Child(Parent):
pass
obj = Child()
print(obj.x)
x = 10
class Child(Parent):
pass
obj = Child()
print(obj.x)
Join the Discussion
Login to post a comment or share your explanation.
Login