- brjtag1.6 By connecting parallel port JTAG cable or wiggler line of brushes to write to support JTAG target device FLASH.
- InsertSort JAVA 插入排序 随机生成十个数 进行插入排序
- show-view iphone xml praser 和多线程 下载实例
- PBGGA 利用遗传优化算法计算宽带隙2维光子晶体结构
- q 改进的路面图像背景校正算法Improved Pavement Image Background Correction Algorithm
- WPFInspector_0_9_9 WPFInspector 0.9.9 WPF Inspector is a utility that attaches to a running WPF application to troubleshoot common problems with layouting
文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.