package com.Exercise;//PC子类,继承Computor类,添加特有属性【品牌brand】public class PC extends Computor{private String brand;public PC(){super("暂无", "暂无", "暂无");this.brand = "暂无";}public PC(String cpu, String memory, String keyboard, String brand) {super(cpu, memory, keyboard);this.brand = brand;}public void Info(){System.out.println("PC的信息如下:");System.out.println(getDetails() + "品牌:" + this.brand);}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。