class Bird :
'''A base class to define bird properties.'''
count = 0
def __init__(self , chat ) :
self.sound = chat
Bird.count += 1
def talk (self ) :
return self.sound
from Bird import*
print('\nClass Instance Of:\n', Bird.__doc__)
polly = Bird('Squawk,squawk!')
print('\nNumber Of Birds:', polly.count)
print('Polly Says:', polly.talk() )
harry = Bird('Tweet,tweet!')
print('\nNumber Of Birds:', harry.count)
print('Harry says:', harry.talk() )