摘要: public class Example4_15{private int money;Example4_15(){money=2000;}private int getMoney(){return money;}public static void main(String arg[]){Example4_15 exa=new Example4_15();exa.money=3000;int m=exa.getMoney();System.out.println("money="+m);}}class Employee{ private double salary=1800; 阅读全文