예제 #1
0
파일: house.py 프로젝트: juju515/2nd_year
 def __str__(self):
     hasGarageStr = "No Garage"
     if self._hasgarage:
         hasGarageStr = "Has Garage"
     return ("%s, %i bedrooms, %s" %
             (Property.__str__(self), self._numfloors, hasGarageStr))
예제 #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))