题目内容

请编写实现动物世界的继承关系。动物(Animal)具有行为:吃(eat)、睡觉(sleep);动物包括:兔子(Rabbit)、老虎(Tiger)。这些动物吃的行为各不相同(兔子吃草,老虎吃肉),但睡觉的行为是一致的。请通过继承实现以上需求,并编写测试类AnimalTest进行测试

查看答案
更多问题

Our department has a large collection of books, _____ are in English.

A. many of which
B. many of them
C. many which
D. which of many

I live in a room ____window opens to the south.

A.where
B.which
C.that
D.Whose

The man just passing by is the engineer____ I worked in Shanghai five years ago.

A. who
B. that
C.whom
D.with whom

It was simply for a special reason ____ I didn't tell you the truth at that time.

A.why
B.what
C.which
D.how

答案查题题库