- 博客(9)
- 收藏
- 关注
转载 自定义控件
1 /** 2 * Author : yanbo 3 * Date : 2015-06-03 4 * Time : 09:22 5 * Description : 自定义区域描述图表View 6 */ 7 public class AreaChartsView extends View {...
2015-07-07 13:05:00
148
转载 【java in think】内部类其他部分
内部类的继承class Outer2{ class SubOuter2 { }}public class InnerDemo2 extends Outer2.SubOuter2{ public InnerDemo2(Outer2 outer2) { outer2.super(); ...
2015-03-24 09:45:00
104
转载 【java in think】内部类的闭包与回调
1 interface Incrementable 2 { 3 void increment(); 4 } 5 6 class Callee1 implements Incrementable// 实现类Callee1 7 { 8 private int i = 0; 9 10 @Override11 pub...
2015-03-23 17:39:00
127
转载 【java in think】嵌套类
1 public class Parce5 2 { 3 4 private static class ParcelContents implements Contents 5 { 6 7 private int i = 11; 8 9 @Override10 public in...
2015-03-23 16:51:00
102
转载 【java in think】匿名内部类
写一个匿名内部类 1 //Contents.java 2 public interface Contents 3 { 4 int value(); 5 } 6 //Parce3.java 7 public class Parce3 8 { 9 public Contents getContents()10 {11 ...
2015-03-23 15:54:00
105
转载 【java in think】提供内部类实例
public class Parce{ class Contents { private Contents() { } private int i = 11; public int value() { return i; } ...
2015-03-23 13:52:00
96
转载 【java in think】接口
class AA{ interface B { void f(); } public class BImp implements B { @Override public void f() { } } ...
2015-03-23 13:37:00
153
转载 【java in think】多态之再论向上转型
class Note{ public static String s; public Note(String s) { this.s = s; } @Override public String toString() { return this.s; }...
2015-03-19 14:36:00
116
转载 【java in think】构造器的调用顺序
class Meal{ public Meal() { System.out.println("Meal()--构造啦!"); }}class Bread{ public Bread() { System.out.println("Bread()--构造啦!");...
2015-03-19 11:25:00
126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅