请定义子类Cat重载父类Animal的sound方法,填写如下横线上的内容。class Cat(Animal): def sound(self): print "The sound of cat goes meow ~">>> cat = Cat('kawaii')>>> cat. getInfo()____________________>>> cat.sound()The sound of cat goes meow ~
请定义子类Cat重载父类Animal的sound方法,填写如下横线上的内容。class Cat(Animal): def sound(self): print "The sound of cat goes meow ~">>> cat = Cat('kawaii')>>> cat. getInfo()____________________>>> cat.sound()The sound of cat goes meow ~
发布时间:2025-02-02 04:38:53