例题4-15/4-16
摘要:public class Example4_15{private int money;Example4_15(){money=2000;}private int getMoney(){return money;}public static void main(String args[]){Example4_15 exa=new Example4_15();exa.money=3000;int m=exa.getMoney();System.out.println("money="+m);}}class Employee{private double salary=1800;
阅读全文
posted @ 2013-04-14 21:45
浙公网安备 33010602011771号