<? class Dog { public function bark( ) { print "Woof!\n"; } } class Poodle extends Dog { public function bark( ) { print "Yip!\n"; } } ?>