Name ____________________

 

1. Write the next line of the song containing the lyric "You must remember this"

     A kiss is just a kiss

 

2. In the code below, add what you are to remember everywhere it has been omitted.

 /**
   The Stock class holds data about a stock.
*/

public class Stock
{
  
private String symbol;     // Trading symbol of stock
   private double sharePrice; // Current price per share

   /**
      Explicit value constructor
      @param sym The stock's trading symbol.
      @param price The stock's share price.
   */

   public Stock(String sym, double price)
   {
      this.symbol = sym;
      this.sharePrice = price;
   }
  
  
/**
      getSymbol method
      @return The stock's trading sysmbol.
   */
  
  
public String getSymbol()
   {
     
return this.symbol;
   }
  
  
/**
      getSharePrice method
      @return The stock's share price
   */
  
  
public double getSharePrice()
   {
     
return this.sharePrice;
   }

  
/**
      toString method
      @return A string indicating the object's trading symbol and share price.
   */
  
  
public String toString()
   {
     
// Create a string describing the stock.
      String str = "Trading symbol: " + this.symbol +
                  
"\nShare price: " + this.sharePrice;
     
     
// Return the string.
      return str;
   }
}