-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtranscation.java
More file actions
45 lines (37 loc) · 829 Bytes
/
transcation.java
File metadata and controls
45 lines (37 loc) · 829 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
38
39
40
41
42
43
44
45
package blockchain;
public class transcation {
public int id;
public String source;
public String destinataion;
public int value;
public transcation(int id, String source, String destinataion, int value) {
this.id = id;
this.source = source;
this.destinataion = destinataion;
this.value = value;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getDestinataion() {
return destinataion;
}
public void setDestinataion(String destinataion) {
this.destinataion = destinataion;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}