Exemplo n.º 1
0
 def __str__(self):
     hasGarageStr = "No Garage"
     if self._hasgarage:
         hasGarageStr = "Has Garage"
     return ("%s, %i bedrooms, %s" %
             (Property.__str__(self), self._numfloors, hasGarageStr))
Exemplo n.º 2
0
 def __str__(self):
     hasBalconyStr = "Has No Balcony"
     if self._hasBalcony:
         hasBalconyStr = "Has Balcony"
     return ("%s, AppartmentNo: %i, %s" %
             (Property.__str__(self), self._appartmentNo, hasBalconyStr))