41.
Which of the following is the most suitable definition for encapsulation?

42.
What is the purpose of the super() function in object-oriented programming?

43.
What is the purpose of the super() function in object-oriented programming?

46.
What will be the output of the following Python code?
class A:
    def __init__(self,x=3):
        self._x = x        
class B(A):
    def __init__(self):
        super().__init__(5)
    def display(self):
        print(self._x)
def main():
    obj = B()
    obj.display()
 
main()

48.
What is the purpose of the @property decorator in object-oriented programming?

49.
What is the purpose of using encapsulation in object-oriented programming?

50.
How is polymorphism implemented in object-oriented programming?