PFP191_-_SP_2025_-_RE_3696.webp
Bakugo2001

PFP191_-_SP_2025_-_RE_3696.webp

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".

Thông tin

Category
PFP191
Thêm bởi
Bakugo2001
Ngày thêm
Lượt xem
899
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom