Project

General

Profile

Actions

text_question #15748

open

grading_ru name=动物类系统 desc=设计一个动 pod_templa answer_id=

Added by UserName LastName 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/18/2025
Due date:
% Done:

0%

Estimated time:
name:
动物类系统面相对象开发
score:
10.0
topic_type:

编程题
...

tag:
desc:

'设计一个动物类系统

- 基类 Animal 包含动物的名称和一个抽象方法 speak(),

- 子类 Dog 和 Cat 分别表示狗和猫类,每个子类需要实现 speak() 方法,

- 输出该动物特有的叫声。

- 请使用适当的面向对象特性来实现该系统,使其能够支持不同动物的多态行为。'

is_delete:
false
answer_id:
15747
tags:

- 11052

grading_rules_id:
15720
pod_template_id:
11364

No data to display

Actions

Also available in: Atom PDF