package COM.xinit.demon.co.uk.3tier.database;


// The SharesRec class
// Stores a single instance of a Shares record
//
// These are dynamic objects that belong to customers

public class SharesRec {

	String ssn;
	String symbol;
	int quantity;

	// SharesRec constructor
	public SharesRec (String ssn, String symbol, int quantity) {
		this.ssn = ssn;
		this.symbol = symbol;
		this.quantity = quantity;
	}
	public SharesRec () {
		ssn = "";
		symbol = "";
		quantity = 0;
	}

	public void print()
	{
	     System.out.println("ssn [" + ssn + "]");
	     System.out.println("symbol [" + symbol + "]");
	     System.out.println("quantity [" + quantity + "]");
	}

	public String getSymbol() { return symbol; }

	public int getQuantity() { return quantity; }
}



Last Updated