Problems adding objects from a different class into an Arraylist - java
问题 I'm working on a project where i have 3 different classes creating objects CommissionEmployee, SalariedEmployee and HourlyEmployee. I need to add these to an arraylist in the main class, but not sure where i'm going wrong. public class Company { public String companyName; public SalariedEmployee owner; public ArrayList<SalariedEmployee> salariedEmployee; public ArrayList<HourlyEmployee> hourlyEmployee; public ArrayList<CommissionEmployee> commissionEmployee; public Company (String companyName