All pastes #419563 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-01 13:00 UTC
rendered paste body
import 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);
	}
}