Question: How many different methods can Medicine object item 2 call? class Product: def _ _ init _ _ ( self ) : self.name = 'None'
How many different methods can Medicine object item call?
class Product:
def initself:
self.name 'None'
self.quantity
def setitemself nm qty:
self.name nm
self.quantity qty
def getitemself:
return self.name, self.quantity
def getnameself:
return self.name
def getquantityself:
return self.quantity
class MedicineProduct:
def initself:
Product.initself
self.expiration
def setexpirationself exp:
self.expiration exp
def getmedicineself:
return self.name, self.quantity, self.expiration
item Product
item Medicine
Question options:
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
