第11章类的高级特性.pptVIP

  • 0
  • 0
  • 约6.59千字
  • 约 26页
  • 2016-06-18 发布于河南
  • 举报
Porgramming in Java 2008.3-2008.7 by Yan-jun Zhang,Department of Computer HanDan Collage. 接口作业2 答案 package interfaces.ex5; public interface Ex5 { void sayOne(); void sayTwo(); void sayThree(); } package interfaces.Ex6; import interfaces.ex5.*; public class TestEx5 implements Ex5 { public void sayOne() { System.out.println(one); } public void sayTwo() { System.out.println(two); } public void sayThree() { System.out.println(three); } public static void main(String[] args) { Ex5 x = new TestEx5(); x.sayOne(); x.sayTwo(); x.sayThree(); } } 第11章 类的高级特性 11.1包 11.2final变量 11.3final方法 11.4final类

文档评论(0)

1亿VIP精品文档

相关文档