Start by looking at the error messages, and the lines they refer to: probably the first error is on this line:
public Salary (String name, String address, int number , int double salary)
What is an
int double
? A
double
is a floating point number, an
int
is not - you can;t just combine them and hope the system works out what you meant!
Take out the
int
type and that should remove some errors.
public Salary (String name, String address, int number , double salary)
Then the next I can see is this line:
System.out println("Within mailCheck of Salary class");
Where you have a space between
out
and
println
. What do you think should be between them?
LOok at each line it is complaining about and read it carefully - at the moment I suspect you are reading what you meant to write instead of what you actually did. That's easy to do - I do it all the time - but you have to work out what the compiler is talking about, and remember that one error can cause others because the compiler gets "confused" as to what you did mean to write.