예제 #1
0
파일: Lunch.py 프로젝트: bodii/test-code
 def __init__(self):
     '''Initialize wiht a sandwich and a gin and tonic.'''
     Meal.__init__(self, 'sandwich', 'gin and tonic')
     self.setName('midday meal')
예제 #2
0
파일: Dinner.py 프로젝트: bodii/test-code
 def __init__(self):
     '''Initialize with steak and merlot.'''
     Meal.__init__(self, 'steak', 'merlot')
     self.setName('dinner')
예제 #3
0
 def __init__(self):
     '''Initialize with an omelet and coffee.'''
     Meal.__init__(self, 'omelet', 'coffee')
     self.setName('breakfast')