-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemOrder.java
More file actions
37 lines (29 loc) · 815 Bytes
/
Copy pathItemOrder.java
File metadata and controls
37 lines (29 loc) · 815 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
29
30
31
32
33
34
35
36
37
public class ItemOrder extends Customers {
public String item_name;
public int No_Of_Plates;
public int price;
public int Cost;
public ItemOrder(int Cust_id,String item_name, int No_Of_Plates, int price, int Cost) {
super(Cust_id);
this.item_name = item_name;
this.No_Of_Plates = No_Of_Plates;
this.price = price;
this.Cost = Cost;
}
public String getItemName() {
return item_name;
}
public int getNumberOfPlates() {
return No_Of_Plates;
}
public int getPrice(){
return price;
}
public int getCost(){
return price * No_Of_Plates;
}
@Override
public String toString(){
return (super.toString()+ "," +item_name);
}
}