The loss of precision is because the return type on get_monthlysalary() is int but _monthlysalary is a double value.
The other exception where it can't find the class is another typo. One package...
Type: Posts; User: samfin
The loss of precision is because the return type on get_monthlysalary() is int but _monthlysalary is a double value.
The other exception where it can't find the class is another typo. One package...
When you say you're getting errors, can you post the errors you're getting please.
Just a quick one, can you put your code in the [ highlight=Java] [ /highlight] tags, makes it easier to read.
Also and this is totally up to you, class names are usually written with capital...
You're pretty much there, just a few typos stopping it working and you haven't done a method to work out the annual salary.
_dependents() I'm guessing should be get_dependants as that's what you've...
We can't do your homework for you, try to write the code, there are tutorials on this forum and info from Google and if you get stuck, post the code and the problem