例题4-4(两个Lader对象共享bottom)
摘要:
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;Lader laderOne,laderTwo;System.out.print 阅读全文
posted @ 2013-03-19 22:17 快乐的铲屎官 阅读(178) 评论(0) 推荐(0) 编辑