One thing that I can think of. If you declare a constructor with parameters (and overloaded constructor,) like you did above, you also need to declare the default constructor (with no parameters.)
public Salary() {
// Default init process
}
If not then your compiler will complain.
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
Offline 84 posts
since Sep 2004