Birds.py 326 B

123456789101112
  1. class Birds:
  2. def __init__(self):
  3. ''' Constructor for this class. '''
  4. # Create some member animals
  5. self.members = ['Sparrow', 'Robin', 'Duck']
  6. def printMembers(self):
  7. print('Printing members of the Birds class')
  8. for member in self.members:
  9. print('\t%s ' % member)