The object-oriented approach class Object: function description(): { print "You see nothing special."; } Object Bottle: function description(): { if (self.empty) print "An empty glass bottle."; else print "A bottle of", self.contents, "."; }