Q7Numerical3 Marks31 Aug 2025
Consider the below python code. What will be the output of the given code? Enter an integer as your answer.
```
class A:
def __init__(self):
self.value = 5
def add(self, num):
self.value += num
return self.value
class B(A):
def __init__(self):
super().__init__()
self.value *= 2
def add(self, num):
return super().add(num * 2)
obj = B()
result = obj.add(3)
print(result)
```
Press Enter to check.