package client;

import bank.Bank;

public class Client {
	int asset; // ࿡ Ա  
	String name;
	Bank bank;
	String accountNumber;
	
	public String GetAccountNumber(){ // ¹ȣ ȯ
		return accountNumber;
	}
	public void Client(String Name, int money){ // 
		asset = money;
		name = Name;
	}
	public void selectBank(Bank banks){ //  
		bank = banks;
	}
	public String getName(){
		return name;
	}
	public int getAsset(){
		return asset;
	}
	public void deposit(int money){ // 
		if(money < asset){
			System.out.println("ݾ մϴ.");
			return;
		}
		asset -= money;
		bank.deposit(accountNumber, money);
	}
	public void withdraw(int money){
		if(bank.withdraw(accountNumber, money)){
			asset += money;
		} // ݿ  ڻ ȭ
	}
	public void transfer(int money){ // ڱ ¿ ۱
		
	}
	public void transfer_without_bankbook(int money, String transferNum){ // ۱
		
	}
	public void closeAccount(){
		asset += bank.closeAccount(accountNumber); // ¸ ϸ 
	}
	public void openAccount(){
		bank.openAccount(accountNumber, name);
	}
}

@@ -70,13 +70,23 @@
  // 
-%E0%BF%A1 %D4%B1  
+%EC%9D%80%ED%96%89%EC%97%90 %EC%9E%85%EA%B8%88%ED%95%98%EC%A7%80 %EC%95%8A%EC%9D%80 %EC%86%8C%EC%A7%80%EA%B8%88
 %0A%09St
@@ -175,12 +175,15 @@
  // 
-%C2%B9%C8%A3 %C8%AF
+%EA%B3%84%EC%A2%8C%EB%B2%88%ED%98%B8 %EB%B0%98%ED%99%98
 %0A%09%09r
@@ -214,21 +214,16 @@
 %09public 
-void 
 Client(S
@@ -249,16 +249,19 @@
 ey)%7B // 
+%EC%83%9D%EC%84%B1%EC%9E%90
 %0A%09%09asset
@@ -328,17 +328,21 @@
 ks)%7B // 
- 
+%EC%9D%80%ED%96%89 %EC%84%A0%ED%83%9D
 %0A%09%09bank 
@@ -476,16 +476,18 @@
 ey)%7B // 
+%EC%98%88%EA%B8%88
 %0A%09%09if(mo
@@ -527,12 +527,17 @@
 ln(%22
-%DD%BE %D5%B4%CF%B4
+%EA%B8%88%EC%95%A1%EC%9D%B4 %EB%B6%80%EC%A1%B1%ED%95%A9%EB%8B%88%EB%8B%A4
 .%22);
@@ -718,14 +718,28 @@
  // 
-%DD%BF  %DA%BB %C8%AD
+%EC%B6%9C%EA%B8%88%EC%97%90 %EC%84%B1%EA%B3%B5%ED%96%88%EC%9D%84%EB%95%8C%EB%A7%8C %ED%98%84%EC%9E%AC%EC%9E%90%EC%82%B0%EC%9D%B4 %EB%B3%80%ED%99%94%ED%95%A8
 %0A%09%7D%0A
@@ -779,13 +779,18 @@
  // 
-%DA%B1 %C2%BF %DB%B1
+%EC%9E%90%EA%B8%B0 %EA%B3%84%EC%A2%8C%EC%97%90%EC%84%9C %EC%86%A1%EA%B8%88
 %0A%09%09%0A
@@ -870,9 +870,13 @@
  // 
-%DB%B1
+%EB%AC%B4%ED%86%B5%EC%9E%A5%EC%86%A1%EA%B8%88
 %0A%09%09%0A
@@ -959,11 +959,16 @@
  // 
-%C2%B8 %CF%B8
+%EA%B3%84%EC%A2%8C%EB%A5%BC %ED%8F%90%EC%87%84%ED%95%98%EB%A9%B4
  %0A%09%7D
@@ -1015,31 +1015,16 @@
 Account(
-accountNumber, 
 name);%0A%09
@@ -1026,9 +1026,8 @@
 e);%0A%09%7D%0A%7D
-%0A

change encoding