Skip to content

Commit bbbd2a8

Browse files
Create B.java
Creating a B class for withdraw
1 parent de8bfd7 commit bbbd2a8

File tree

1 file changed

+18
-0
lines changed
  • Swing/Banking_System/com.pro

1 file changed

+18
-0
lines changed

Swing/Banking_System/com.pro/B.java

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.pro;
2+
/*
3+
@author:Akash Tiwari
4+
*/
5+
import com.main.Customer;
6+
import com.main.Withdraw;
7+
8+
public class B implements Withdraw{
9+
int balance;
10+
double amount;
11+
12+
@Override
13+
public void withdraw(Customer c, double amount) {
14+
c.setBalance(balance=(int) (c.getBalance()-amount));
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)