May I have help with a 4 Java classes: Person, Employee, Customer, Vendor Employee, Customer, and Vendor are all extended from Person (SuperClass) In each SubClasses (Employee, Customer, and Vendor), need to have the following methods: public boolean equals(Object o) (using @Override) Must use instanceof public String toString() public String getName() public String getID() Constructor Here are some private data members for each subclasses: Employee: department Customer: tier (integer) Vendor: balance (double) In the main() program, read the input file, and the input format is as follows: … In the main program, do not call toString() directly. Input files and expected output files: lab22_input01.txt / lab22_output01.txt lab22_input02.txt / lab22_output02.txt lab22_input03.txt / lab22_output03.txt
May I have help with a 4 Java classes: Person, Employee, Customer, Vendor Employee, Customer, and Vendor are all extended from Person (SuperClass) In each SubClasses (Employee, Customer, and Vendor), need to have the following methods: public boolean equals(Object o) (using @Override) Must use instanceof public String toString() public String getName() public String getID() Constructor Here are some private data members for each subclasses: Employee: department Customer: tier (integer) Vendor: balance (double) In the main() program, read the input file, and the input format is as follows: … In the main program, do not call toString() directly. Input files and expected output files: lab22_input01.txt / lab22_output01.txt lab22_input02.txt / lab22_output02.txt lab22_input03.txt / lab22_output03.txt
Trending now
This is a popular solution!
Step by step
Solved in 7 steps