001package horstmann.ch05_invoice;
002/**
003   A product with a price and description.
004 */
005public class Product implements LineItem
006{
007        /**
008      Constructs a product.
009      @param description the description
010      @param price the price
011         */
012        public Product(String description, double price)
013        {
014                this.description = description;
015                this.price = price;
016        }
017        public double getPrice() { return price; }
018        public String toString() { return description; }
019        private String description;
020        private double price;
021}