#!/usr/bin/python #This is a 'new-style' class class Bird(object): def tweet(self): print "tweet tweet!" def fly(self): print "wheee!" class Duck(Bird): def waddle(self): print "waddle waddle" #let's override the tweet: def tweet(self): print "quack" #Try using this from the interactive prompt