账户类的实现
package test;public class NewClass {
public static void show(Account account)
{
show(account.getUser());
System.out.println("userName is:"+account.getUserName()); //输出银行卡的拥有者
System.out.println("userSex is :"+account.getSex()); //输出银行卡的拥有者的性别
System.out.println("userAge is:"+account.getAge()); //输出银行卡拥有者的年龄
System.out.println("userpassWord is:"+account.getPassWord()); //输出银行卡的密码
System.out.println("userCard is:"+account.getCard().getCardNumber()); //输出银行卡的卡号
}
}
出错提醒;Account不知是错在哪了
cannot find symbol
symbol: class Account
location: class test.NewClass
----