Class StockCertificate

java.lang.Object
  |
  +--StockCertificate

public class StockCertificate
extends java.lang.Object


Constructor Summary
StockCertificate()
          default constuctor
StockCertificate(Stock astock, int numShares)
          construcutor method to allow input
 
Method Summary
 double getBuyPrice()
          method to get the purchase price of each stock
 int getShares()
          method to get the number of shares of each stock
 Stock getStocks()
          method to get the stocks in the array
 java.lang.String toString()
          report for validation purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StockCertificate

public StockCertificate()
default constuctor

StockCertificate

public StockCertificate(Stock astock,
                        int numShares)
construcutor method to allow input
Method Detail

getStocks

public Stock getStocks()
method to get the stocks in the array

getShares

public int getShares()
method to get the number of shares of each stock

getBuyPrice

public double getBuyPrice()
method to get the purchase price of each stock

toString

public java.lang.String toString()
report for validation purposes
Parameters:
no - parameters
Returns:
report with stocks and number of shares per stock
Overrides:
toString in class java.lang.Object