May be you have an old .class file in your path. Check by explicitly setting the classpath OR passing it on command line OR running on a different machine/window.
thekashyap
Practically a Posting Shark
811 posts since Feb 2007
Reputation Points: 254
Solved Threads: 75
it's quite normal that this code gives an error. you're calling the default constructor of BankImpl, but your BankImpl class doesn't have a default constructor. you should just use the constructor that does exist:
public BankImpl (int acctNo, String lname, String fname, double bal)
{
accountNumber = acctNo;
lastName = lname;
firstName = fname;
balance = bal;
}
so, in BankServer, do not use:
BankImpl b = new BankImpl();
but something like:
BankImpl b = new BankImpl(1, "LastName","FirstName",2517.26);
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433