/**
 * AuctionLot
 * A class for objects that are being auctioned, allowing bidding 
 * by many potential customers.
 */

class AuctionLot {

    String description;   // textual description of the lot.
    double highBid;       // amount of the highest bid placed so far.
    String highBidder;    // name of the person who made the highest bid.

    // Constructor -- note weird syntax.
    AuctionLot(String lotDescription) {
	description = lotDescription;
	highBid = 0.0;
    }


    // Create a new lot (with a given description)
    void initializeLot(String lotDescription) {
	description = lotDescription;
	highBid = 0.0;
    }

    String getDescription() {
	return description;
    }

    double getHighBid() {
	return highBid;
    }
    
    String getHighBidder() {
	return highBidder;
    }

    void makeBid(double bidAmount, String bidder) {
	if (bidAmount > highBid) {
	    highBid = bidAmount;
	    highBidder = bidder;
	}
    }
    
}
