像大多数新程序员一样,我有一个小但重要的问题,我无法弄清楚.我的程序不会拉我的构造函数.我尝试了很多不同的方法,似乎无法弄明白.任何帮助将不胜感激.
Error
EmployeeTest.java:13: cannot find symbol
symbol : constructor Employee()
location: class Employee
Employee x = new Employee();
^
EmployeeTest.java:14: cannot find symbol
symbol : constructor Employee()
location: class Employee
Employee y = new Employee();
public class Employee
{
private double salaryValue; // variable that stores monthlySalary
private String firstName; // instance variable that stores first name
private String lastName; // variable that stores last name
public Employee( String firstNameParameter , String lastNameParameter , double salaryValueParameter )
{
if ( …Run Code Online (Sandbox Code Playgroud) java ×1