1:定义一个父类
public class User {
private String name;
private int money;
public User() {
super();
// TODO Auto-generated constructor stub
}
public User(String name, int money) {
super();
this.name = name;
this.money = money;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getMoney() {
return money;
}
public void setMoney(int money) {
this.money = money;
}
}
2:群主发红包
public class Manager extends User{
public Manager() {
super(