摘要: class Tom{final int MAX=100;static final int MIN=20;}public class Example4_5{ public static void main(String args[]){ System.out.println(Tom.MIN); Tom cat=new Tom(); int x=0; x=Tom.MIN+cat.MAX; System.out.println(x);}} 阅读全文
posted @ 2013-03-20 22:19 徐慧同学 阅读(135) 评论(0) 推荐(0) 编辑
摘要: class Lader{ double above,height; static double bottom; void setAbove(double a){ above=a;} void setBottom(double b){ bottom=b; } double getAbove(){ return above; } double getBottom(){ return bottom; } } class Example4_4{ public static void main(String args[]){Lader.bottom=60; Lade... 阅读全文
posted @ 2013-03-20 21:43 徐慧同学 阅读(287) 评论(0) 推荐(0) 编辑