Emergency help 1. Implement a Cat (Cat), define "varieties (name)", "age (age)," "feature (pro)" three variables, set the three information of object, getAllInfo () to display all information, 2. The interface implementation of polymorphic: Animal interface, two abstract methods: call cry () and eat eat (), class implements the interface,
CodePudding user response:
Is to implement a animal interface, the realization of a cat, then realize the cry and eat