摘要: 1 /** 2 * Author : yanbo 3 * Date : 2015-06-03 4 * Time : 09:22 5 * Description : 自定义区域描述图表View 6 */ 7 public clas... 阅读全文
posted @ 2015-07-07 13:05 伊魔朵酱 阅读(147) 评论(0) 推荐(0)
摘要: 内部类的继承class Outer2{ class SubOuter2 { }}public class InnerDemo2 extends Outer2.SubOuter2{ public InnerDemo2(Outer2 outer2) { out... 阅读全文
posted @ 2015-03-24 09:45 伊魔朵酱 阅读(141) 评论(0) 推荐(0)
摘要: 1 interface Incrementable 2 { 3 void increment(); 4 } 5 6 class Callee1 implements Incrementable// 实现类Callee1 7 { 8 private int i = 0; 9 10 ... 阅读全文
posted @ 2015-03-23 17:39 伊魔朵酱 阅读(582) 评论(0) 推荐(0)
摘要: 1 public class Parce5 2 { 3 4 private static class ParcelContents implements Contents 5 { 6 7 private int i = 11; 8 9 @Ove... 阅读全文
posted @ 2015-03-23 16:51 伊魔朵酱 阅读(171) 评论(0) 推荐(0)
摘要: 写一个匿名内部类 1 //Contents.java 2 public interface Contents 3 { 4 int value(); 5 } 6 //Parce3.java 7 public class Parce3 8 { 9 public Contents getC... 阅读全文
posted @ 2015-03-23 15:54 伊魔朵酱 阅读(180) 评论(0) 推荐(0)
摘要: public class Parce{ class Contents { private Contents() { } private int i = 11; public int value() { ... 阅读全文
posted @ 2015-03-23 13:52 伊魔朵酱 阅读(124) 评论(0) 推荐(0)
摘要: class AA{ interface B { void f(); } public class BImp implements B { @Override public void f() { } ... 阅读全文
posted @ 2015-03-23 13:37 伊魔朵酱 阅读(156) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-03-23 11:12 伊魔朵酱 阅读(3) 评论(0) 推荐(0)
摘要: class Note{ public static String s; public Note(String s) { this.s = s; } @Override public String toString() { retu... 阅读全文
posted @ 2015-03-19 14:36 伊魔朵酱 阅读(271) 评论(0) 推荐(0)
摘要: class Meal{ public Meal() { System.out.println("Meal()--构造啦!"); }}class Bread{ public Bread() { System.out.println("Bread... 阅读全文
posted @ 2015-03-19 11:25 伊魔朵酱 阅读(250) 评论(0) 推荐(0)