class BankClerk{ //银行对象
public void open(Customer c,Account a){
c.account=a;
}
}
public class Method_Exer6 {
public static void main(String[] args) {
//创建客户对象
Customer c = new Customer();
c.name = "张三";
c.tel = "15874513654";
c.cid = "31245891990628001";
Customer c2 = new Customer();
c2.name = "李四";
c2.tel = "147852369";
c2.cid = "159635447811";
//创建银行卡账号对象
Account a = new Account();
a.id = "6541123658";
a.balance = 0;
Account a2 = new Account();
a2.id = "789654133";
a2.balance2 = 0;
//银行对象
BankClerk b = new BankClerk();
BankClerk p = new BankClerk();
b.open(c, a);
p.open(c2, a2);
System.out.println("姓名:" + c.name +