35
(Choose 1 answer)
What is output of the sample code?
class A:
def init (self):self.calcl(30)
def calcl(self, i):self.i = 2* i;
class B(A):
def __init__(self):super()._init__()print("i from B is", self.i)
def calcl(self, i):self.i = 3 * i;
b = B()
A. The_init_method of only class B gets invoked.
B. The_init_method of class A gets invoked and it displays "i from B is 0".
C. The_init_method of class A gets invoked and it displays "i from B is 60"
D. The_init_method of class A gets invoked and it displays "i from B is 90".