forked from Denisolt/CSCI-160
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSell.java
More file actions
27 lines (25 loc) · 886 Bytes
/
Sell.java
File metadata and controls
27 lines (25 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package StockMarket;
/****************************************************
*Project Inormaiton
*Course: CSCI 185/504 Spring 2016
*Project Name: Project #2
*File Name: Sell
*Author:
*Date Created: 03/01/2016
*Date Updated: 03/01/2016 the calss has been created
*Description: This class is a child class of Order class, has a contrusctor and toString method to display the information
*****************************************************************************************************************************************/
public class Sell extends Order
{
String sector1;
public Sell(String name, double value, String sector)
{
super(name, value);
sector1 = sector;
}
public String toString()
{
String str = "Sell[super=Order[name = "+name1+" @, Price="+value1+"],Stock Market Sector =" + sector1;
return str;
}
}