Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8981601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:22:39+00:00 2026-06-15T20:22:39+00:00

I am getting the following error with this code: BankingServant is not abstract and

  • 0

I am getting the following error with this code:

BankingServant is not abstract and does not override abstract method
CheckBalance(String) in BankingOperations public class BankingServant
extends _BankingImplBase

Here is my code:

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: ");
  }
}

Why am I getting this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:22:40+00:00Added an answer on June 15, 2026 at 8:22 pm

    You have

    private int CheckBalance;
    

    and

    public void CheckBalance(String accName) {
    

    There are two Java conventions you can follow to prevent things like this:

    1. Always begin method and field names with a lowercase letter.
    2. more important in this example Fields should be given noun names, methods should be given verb names, so they should almost never have the same name.

    You can find some good references on naming conventions here:

    • Java Code Naming Conventions
    • Java Practices
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure what is wrong with this code. I keep getting the following error:
Hi i am getting the following error in this code /* Class : CreateMobileChatterCntrl
I am compiling following code and getting following error. How to fix this? Thanks
I am getting this error when I run the following code: #!/usr/bin/env ruby -rubygems
I'm running Valgrind and I'm getting the following error (this is not the only
I am getting following error while executing my java code. What is this error
When I try and compile this code (VS2010) I am getting the following error:
I am getting the following error at this line of code... MembershipUser newuser =
I am getting the following error while migrating VC6 code to VS2008. This code
I keep getting following error on this code: #Setup default variables $webUrl = Get-SPWeb

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.