Kizspy Question: 7
(Choose 1 answer)
PLEVERRFLOWWOM
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".