我收到以下代码错误:
BankingServant is not abstract and does not override abstract method
CheckBalance(String) in BankingOperations public class BankingServant
extends _BankingImplBase
这是我的代码:
import BankingApp._BankingImplBase;
import BankingApp.*;
import java.util.ArrayList;
import java.util.Iterator;
public class BankingServant extends _BankingImplBase {
private int AccountName;
private int LodgementAmount ;
private int TransferAmount ;
private int WithdrawlAmount;
private int TransferAmount;
private int TransferAccWith;
private int TransferAccDep;
private int CheckBalance;
private class Account {
String accName;
}
private class Trans {
String accName;
double transferAmount;
double transferAccWith;
double transferAccDep;
double withAmount;
double lodgementAmount;
}
private class With {
String accName;
double withAmount;
}
public boolean Lodgement(String accName, double lodgementAmount) {
System.out.println("Enter Lodgement.");
Account acc = new Account();
acc.accName = accName;
acc.lodgementAmount = lodgementAmount;
acc.add(acc);
System.out.println("Money was lodged.");
}
public boolean Transfer(String accName, double transferAmount, double transferAccWith, double transferAccDep){
System.out.println("Transfer Amount: ");
Trans bankingTemp = new Trans();
bankingTemp.accName = accName;
bankingTemp.transferAmount = transferAmount;
bankingTemp.transferAccWith = transferAccWith;
bankingTemp.transferAccDep = transferAccDep;
bankingTemp.parts = this.parts;
bankingTemp.planeId = planeId;
banking.add(bankingTemp);
System.out.println("Transfered");
planeId++;
return true;
}
public void CheckBalance(String accName) {
System.out.println("Balance is: ");
Account accB = new Account();
accB.accName = accName;
accB.checkBalance = checkBalance;
accB.add(accB);
System.out.println("Balance is: ");
}
}
为什么我会收到此错误?