class BankAccunt
{
String m_sName;
Double m_dBalance;
Double m_dRate;
void BankAccunt(String m,Double q,Double r)
{
m_sName=m;
m_dBalance=q;
m_dRate=r;
}
Double getBalance()
{
return this.m_dBalance;
}
Double getRate()
{
return this.m_dRate;
}
void setRate(Double l)
{
m_dRate=l;
}
Double saveMonye(Double c)
{
return m_dBalance+=c;
}
Double getMonye(Double t)
{
return m_dBalance-=t;
}
void PrintAccuntMeg()
{
System.out.println(m_sName);
System.out.println(m_dBalance);
System.out.println(m_dRate);
}
}
public class SimpleAccunt
{
public static void main(String[] args)
{
BankAccunt m=new BankAccunt("zyb",100.0,0.08);
m.PrintAccuntMeg();
m.saveMonye(100.0);
m.PrintAccuntMeg();
m.getMonye(50.0);
m.PrintAccuntMeg();
}
}
编译的时候在这句BankAccunt m=new BankAccunt("zyb",100.0,0.08);
说找不到符号
这是为什么?