Looking at your Main class you declare three variables of (the primitive data) type
double.
double PayRate; // First number multiplied
double HoursWorked; // Second number multiplied
double total; // Total of PayRate * HoursWorked
...
PayRate = input.nextDouble();
...
HoursWorked = input.nextDouble();
...
total = (double) PayRate * HoursWorked;
// Create an instance of Employee with this data:
Employee employee = new Employee(PayRate, HoursWorked, total);
For this to work your Employee class must have a constructor that accepts three
double arguments, viz,
class Employee {
...
public Employee(double arg1, double arg2, double arg3) {
...
}
...
}
If java cannot find such a constructor in the Employee class it will give a compile error saying it cannot find a constructor with this signature.
So you would want to design your Employee (or whatever name you choose to give it) class to match your Main class data that you are collecting, computing and want to save (in the Employee class).
class Employee {
double payRate;
double hours;
double total;
Employee(double payRate, double hours, double total) {
this.payRate = payRate;
this.hours = hours;
this.total = toal;
}
...
}
The argument types must match up. Java is very prissy about type matching. It all seems silly in the beginning but it's a way to make everything clear and easy to read and understand.