Question: class A ( ) : x = 1 def _ _ init _ _ ( self , n ) : self.y = n A .
class A:
x
def initself n:
self.y n
Ax
def pself:
printselfy
self.y
self.r
def rself:
self.y
printselfy
class BA:
x
def initself n:
superinitn
sum self.y Bx
self.m sum
def rself:
self.y self.x
printselfm
a A
b B
ap
bp
global variable is created on line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
