-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInvoice.java
48 lines (48 loc) · 829 Bytes
/
Invoice.java
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
38
39
40
41
42
43
44
45
46
47
48
public class Invoice
{
private int iNumber;
private String iName;
private int Quantity;
private int Price;
private double tCost;
public int getiNumber()
{
return iNumber;
}
public void setiNumber(int iNum)
{
iNumber = iNum;
}
public String getiName()
{
return iName;
}
public void setiName(String name)
{
iName = name;
}
public int getQuantity()
{
return Quantity;
}
public void setQuantity(int Qt)
{
Quantity = Qt;
}
public int getPrice()
{
return Price;
}
public void setPrice(int Pr)
{
Price = Pr;
}
public double gettCost()
{
return tCost;
}
public void settCost(double TC)
{
tCost = Quantity * Price;
}
}