public class InvItem {
    
    private String name;
    private int    units;
    private double  price;
    
    public InvItem( String itemName, int numUnits, double cost ) {
	name  = itemName;
	units = numUnits;
	price = cost;
    } // end of InvItem constructor

    public String getName() {
	return( name );
    } // end of getName() method

    public int getUnits() {
	return( units );
    } // end of getUnits() method
    
    public double getPrice() {
	return( price );
    } // end of getPrice() method
    
    public void setPrice( double new_price ) {
	price = new_price;
    } // end of setPrice() method

} // end of InvItem class
