- 10191af2d3b1a2bb PIC16F877——PIC16F877之间串口通信的例子
- BlockRate 通信中排队论的运用
- serial programa desarrollado en asm para una interfaz asincronica tipo comunicacion entre el avr atmega 16 y el pc controlando la digitalizacion de numeros
- 2012caozuoxitog 操作系统和软件工程课程上的题目要求
- day05 达内精品课程C++ 源代码
- 89dnsdown 程序总数:1774/1774 boychina.net的代码下载栏目
文件名称:InterfaceTest
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.5kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在第 (3) 小题中由于新加入的 Clock 类仅仅实现了 Soundable 接口的stopsound() 和playsound() 方法 , 而 increaseVolume() 和 decreaseVolume() 方法没有实现 , 因此它实质上是一个抽象类 , 而抽象类是不能实例化的 , 所以导致编译错误。但是按照常理 , 闹钟的滴答声确实是不可以增大或减小的 , 那么如何解决这个问题呢 ? 现在请在 Clock 类中加入下面两个含 {}空方法体的方法实现 , 再编译运行程序 , 看看会有什么变化。-In paragraph (3) small problems in the Clock class because only new entrants to achieve a Soundable interface stopsound () and playsound () method, and increaseVolume () and decreaseVolume () method not implemented, so it is essentially an abstract class The abstract class can not be instantiated, thus resulting in a compile error. But according to common sense, is indeed a ticking alarm clock can not increase or decrease, then how to solve this problem? Now add in the Clock class {} with the following two methods to achieve an empty method body, and then compile and run the program to see what changes.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
InterfaceTest/Clock.class
InterfaceTest/InterfaceTest.class
InterfaceTest/InterfaceTest.java
InterfaceTest/Mobilephone.class
InterfaceTest/People.class
InterfaceTest/Radio.class
InterfaceTest/Soundable.class
InterfaceTest/Walkman.class
InterfaceTest
InterfaceTest/InterfaceTest.class
InterfaceTest/InterfaceTest.java
InterfaceTest/Mobilephone.class
InterfaceTest/People.class
InterfaceTest/Radio.class
InterfaceTest/Soundable.class
InterfaceTest/Walkman.class
InterfaceTest
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
