21. The assignment of more than one function to a particular operator is . . . . . . . .
22. What is the difference between a class variable and an instance variable in Python?
23. How can you access a class variable in Python?
24. . . . . . . . . represents an entity in the real world with its identity and behaviour.
25. . . . . . . . . is used to create an object.
26. What are the methods which begin and end with two underscore characters called?
27. What is setattr() used for?
28. What is getattr() used for?
29. What is the output of the following code:
class MyClass:
x = 5
obj = MyClass()
print(obj.x)
class MyClass:
x = 5
obj = MyClass()
print(obj.x)
30. What is the output of the following code:
class Parent:
def show(self):
print('Parent method')
class Child(Parent):
pass
obj = Child()
obj.show()
class Parent:
def show(self):
print('Parent method')
class Child(Parent):
pass
obj = Child()
obj.show()