Exemple #1
0
 def __init__(self, n, q):
     '''Intializes the vegtable'''
     self.age = 1
     self.price = 3
     self.agefactor = 10
     self.pricefactor = 0
     self.location = 1
     vegtable.__init__(self, n, q)
Exemple #2
0
 def __init__(self, n, s, w, wet, c, a, b):
     '''Intializes the vegtable'''
     self.length = 1.0  # start as baby string bean #attributes
     self.radius = 0.3 #attributes
     vegtable.__init__(self,n, s, w, wet, c, a, b)
 def __init__(self, n, s, w, wet, c, a, b):
     '''Intializes the vegtable'''
     self.length = 1.5  # start as baby string bean
     self.radius = 0.15
     vegtable.__init__(self, n, s, w, wet, c, a, b)
 def __init__(self, n, s, w, wet, c, a, b):
     '''Intializes the vegtable'''
     self.length = 1.5  # start as baby string bean
     self.radius = 0.15
     vegtable.__init__(self,n, s, w, wet, c, a, b)