Unnamed
public text v1 · immutableimport java.util.List;
import java.util.ArrayList;
public class Advisor extends Person
{
Customer customer;
List customerList;
public Advisor()
{
}
//creates an advisor
public Advisor(String firstName, String lastName)
{
this.firstName = firstName;
this.lastName = lastName;
this.customerList = new ArrayList();
}
//adds an advisor to a customer
public void addCustomer(Customer c)
{
this.customerList.add(c);
}
}