继承
public class ExtendsTest02 {
}
class Account2{
private String actno;
private double balance;
public Account2() {
}
public Account2(String actno, double balance) {
this.actno = actno;
this.balance = balance;
}
public String getActno() {
return actno;
}
public void setActno(String actno) {
this.actno = actno;
}
public double getBalance() {
return balance;
}
public void setBalance(double balance) {
this.balance = balance;
}
}
class CreditAccount2 extends Account2{
private double credit;
public CreditAccount2(double credit) {
this.credit =