Question 13
Consider the below python code.
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)
What will be the output of the given code?