-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSBI.java
More file actions
32 lines (27 loc) · 715 Bytes
/
SBI.java
File metadata and controls
32 lines (27 loc) · 715 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
public class SBI implements RBI, TTP{
static String name = "SBI"; //
public void withdraw(){
System.out.println("withdraw success and "+INCENTIVE);
}
public void transfer(){
System.out.println("transferred the amount "+INCENTIVE);
}
public void deposit(){
System.out.println("Deposited!!"+INCENTIVE);
}
public void disp(){
System.out.println(name);
}
public void confirmTransaction(){
System.out.println("Transaction confirmed!");
}
public static void main(String[] args) {
RBI r = new SBI();
r.withdraw();
r.transfer();
r.deposit();
SBI s = new SBI();
s.disp();
s.confirmTransaction();
}
}