-
Notifications
You must be signed in to change notification settings - Fork 511
Expand file tree
/
Copy pathATMState.java
More file actions
32 lines (24 loc) · 884 Bytes
/
ATMState.java
File metadata and controls
32 lines (24 loc) · 884 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
package atm;
public abstract class ATMState {
public void insertCard(ATM atm, Card card) {
System.out.println("OOPS!! Something went wrong");
}
public void authenticatePin(ATM atm, Card card, int pin){
System.out.println("OOPS!! Something went wrong");
}
public void selectOperation(ATM atm, Card card, TransactionType txnType){
System.out.println("OOPS!! Something went wrong");
}
public void cashWithdrawal(ATM atm, Card card, int withdrawAmount){
System.out.println("OOPS!! Something went wrong");
}
public void displayBalance(ATM atm, Card card){
System.out.println("OOPS!! Something went wrong");
}
public void returnCard(){
System.out.println("OOPS!! Something went wrong");
}
public void exit(ATM atm){
System.out.println("OOPS!! Something went wrong");
}
}