PFP191_-_RE_-_SU_2023_530.webp
hoanghai90

PFP191_-_RE_-_SU_2023_530.webp

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



Thông tin

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

Image metadata

Filename
PFP191_-_RE_-_SU_2023_530.webp
File size
58.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom