forked from Denisolt/CSCI-160
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.java
More file actions
28 lines (26 loc) · 853 Bytes
/
Order.java
File metadata and controls
28 lines (26 loc) · 853 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
28
package StockMarket;
/****************************************************
*Project Inormaiton
*Course: CSCI 185/504 Spring 2016
*Project Name: Project #2
*File Name: Order
*Author:
*Date Created: 03/01/2016
*Date Updated: 03/01/2016 the calss has been created
*Description: This class is a parent class for two other classes, has a contrusctor and toString method to display the information
*****************************************************************************************************************************************/
public class Order
{
double value1;
String name1;
public Order(String name, double value)
{
name1 = name;
value1 = value;
}
public String toString()
{
String str = "Order[name = "+name1+" Current Price:, Price="+value1+"]";
return str;
}
}