
/**
 * This class will keep track of the sale of a used car
 * 
 * @author Jeff Borland
 * @version 1.08
 */
public class Sale
{
    private String sellerName;
    private int salePrice;
    private int carValue;
    private int profit;
    private int date;  //in format 20080212  yyyymmdd
    
    public Sale (int date, String sellerName, int salePrice, int carValue)
    {
        this.date=date;
        this.sellerName=sellerName;
        this.salePrice=salePrice;
        this.carValue=carValue;
        profit=salePrice-carValue;
    }

    public String getSellerName()
    {
        return sellerName;
    }
    
    public int getDate()
    {
        return date;
    }    

    public int getSalePrice()
    {
        return salePrice;
    }

    public int getCarValue()
    {
        return carValue;
    }    

    public int getProfit()
    {
        return profit;
    }    
    
}
