Question: Consider the following class specifications: class ClassA: def _ _ init _ _ ( self ) : self.x = 3 def mOne ( self ,
Consider the following class specifications:
class ClassA:
def initself:
self.x
def mOneself i:
printi self.x
def mTwoself i:
printi self.x
def mThreeself i:
printi self.x
def mFourself i:
printi self.x
class ClassBClassA:
def initself:
ClassA.initself
self.y
def mOneself i:
printselfy i
def mTwoself i:
printselfy i
def mFiveself i:
printselfy i
def mSixself i:
printselfy i
Specify the output a numerical value OR mark as na to indicate not allowed in the space provided corresponding to each the statements below:
Code Your Answers
a ClassA
b ClassB
printax
printay
na
printbx
printby
amOne
amTwo
amThree
amFour
amFive
na
amSix
na
bmOne
bmTwo
bmThree
bmFour
bmFive
bmSix
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
