I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods,
private int employeeNumber; private Name employeeName = new Name(); private Date employeeHireDate = new Date(); private Address employeeAddress = new Address();
The compiler says it cannot find Name, Date, and Address.
All i've done to the previously working code was add: package Employer;
to the start of each file, and an import Employer; to the one which has the main method.
Any help on the issue would be greatly appreciated!