![]() |
<identifier> expected error java
Hi guys, I have this code and when I try to compile and run it gives me an <identifier> expected error.
The code with the irrelevant parts taken out. :
when I run it points to the line Bank.setBal(amount) and says <identifier> expected can someone help? |
Re: <identifier> expected error java
I tried removing the private part from the variable declaration. removed the method to access the balance, since it was no longer needed and could just be accessed from the subclass using bank.bal. but it still gives me the identifier error on the line I access the bal from in the subclass
|
| All times are GMT -5. The time now is 4:06 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC