java继承多态练习题
时间: 2023-08-28 11:23:23 浏览: 181
java中继承与多态的题目
以下是关于Java继承和多态的练习题答案:
1. 题目:下面关于子类继承父类,正确的是( )。
答案:A. public class Student extends People{}
2. 题目:关于继承的说法,正确的是( )。
答案:B. 除了Object之外的每个类,有且仅有一个父类
请注意,以上是根据提供的引用资料给出的答案。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [java多态练习题](https://download.csdn.net/download/qq_42036783/10365142)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【java期末复习题】第5章 继承与多态](https://blog.csdn.net/DynamoTUO/article/details/121881634)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文