作业二具体是什么?
追问就是举一个例子就可以了。。
追答作业二不知道要怎么说。
作业三代码:
public class Account {
long id;
String password, name, personId,email;
double balance;
Account(){
}
Account(long id,String password,String personId,String email){
this.id=id;
this.password=password;
this.personId=personId;
this.email=email;
this.balance=0;
}
void deposit(double money){
this.balance+=money;
}
void withdraw(double money){
this.balance-=money;
}
}
作业二不知道要怎么说。
作业三代码:
public class Account {
long id;
String password, name, personId,email;
double balance;
Account(){
}
Account(long id,String password,String personId,String email){
this.id=id;
this.password=password;
this.personId=personId;
this.email=email;
this.balance=0;
}
void deposit(double money){
this.balance+=money;
}
void withdraw(double money){
this.balance-=money;
}
}