-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTransaction.java
More file actions
72 lines (60 loc) · 1.13 KB
/
Transaction.java
File metadata and controls
72 lines (60 loc) · 1.13 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import java.io.Serializable;
public class Transaction implements Serializable
{
/*
* getter and setter methods for transaction types and amounts.
*/
public Transaction()
{
date = "";
CheckNO = 0;
transactionType = 0;
TransactionsDes = "";
amount = 0;
}
public int getTransactionType()
{
return transactionType;
}
public void setAmount(double amount)
{
this.amount = amount;
}
public double getAmount()
{
return amount;
}
public void setTransactionType(int newType)
{
transactionType = newType;
}
public String getDate()
{
return date;
}
public void setDate(String date)
{
this.date = date;
}
public String getTransactionDes()
{
return TransactionsDes;
}
public void setTransactionDes(String TransactionDes)
{
this.TransactionsDes = TransactionDes;
}
public int getCheckNO()
{
return CheckNO;
}
public void setCheckNO(int CheckNO)
{
this.CheckNO = CheckNO;
}
private int transactionType;
private double amount;
private int CheckNO;
private String date;
private String TransactionsDes;
}