From a11695453bb7c270ff86caa97713e54be58e9c08 Mon Sep 17 00:00:00 2001 From: hayoun Date: Mon, 3 Apr 2023 21:58:42 +0900 Subject: [PATCH 01/15] =?UTF-8?q?[feat]=20=EA=B3=BC=EC=A0=9C=EC=A0=9C?= =?UTF-8?q?=EC=B6=9C=20=EB=A7=88=ED=81=AC=EB=8B=A4=EC=9A=B4=20=EC=96=91?= =?UTF-8?q?=EC=8B=9D=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes .github/ISSUE_TEMPLATE/feature_request.md | 17 +++++++++++++++++ .github/PULL_REQUEST_TEMPLATE | 17 +++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .DS_Store create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..68586da00124b12933dffab2131c028d80d8be1e GIT binary patch literal 6148 zcmeHKF-`+P475p#Aexkv`+`XPU=v-66g2Pw6jBDIqQ5Hd;%6{pTZrhOL83up$(~)W z=QcORIW{xjydLh%mS(nq6Yb0}HJ;Nac2yY%!tsoI+uF)r?65mds=rT=duNR3`(vfdf*9*tQq?^ahcuw8yHKBOij(m%9 z^PZ?E1*E{G0<+vM+5fljALjo{l6F!+3j8Ytd_Fu58@y8W*2&AU*EaYQoHcK78rDHU mh;|H&c8m?%@of}kUE><(y>LtnI`TmW>dydmkx7BSR^S7hfEp

+ + + +## 🐕 과제 구현 명세 + +- + +
+ + + +## 🐥 이런 점이 새로웠어요 / 어려웠어요 + +- \ No newline at end of file From 26c9166c36e3787075e6671a393b962df914f212 Mon Sep 17 00:00:00 2001 From: hayoun Date: Mon, 3 Apr 2023 23:35:17 +0900 Subject: [PATCH 02/15] =?UTF-8?q?[feat]=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/.idea/.gitignore | 8 ++++++++ First/.idea/jpa-buddy.xml | 6 ++++++ First/.idea/misc.xml | 9 +++++++++ First/.idea/modules.xml | 8 ++++++++ First/.idea/vcs.xml | 6 ++++++ First/First.iml | 11 +++++++++++ First/src/Main.java | 5 +++++ 7 files changed, 53 insertions(+) create mode 100644 First/.idea/.gitignore create mode 100644 First/.idea/jpa-buddy.xml create mode 100644 First/.idea/misc.xml create mode 100644 First/.idea/modules.xml create mode 100644 First/.idea/vcs.xml create mode 100644 First/First.iml create mode 100644 First/src/Main.java diff --git a/First/.idea/.gitignore b/First/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/First/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/First/.idea/jpa-buddy.xml b/First/.idea/jpa-buddy.xml new file mode 100644 index 0000000..966d5f5 --- /dev/null +++ b/First/.idea/jpa-buddy.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/First/.idea/misc.xml b/First/.idea/misc.xml new file mode 100644 index 0000000..3950286 --- /dev/null +++ b/First/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/First/.idea/modules.xml b/First/.idea/modules.xml new file mode 100644 index 0000000..2979964 --- /dev/null +++ b/First/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/First/.idea/vcs.xml b/First/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/First/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/First/First.iml b/First/First.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/First/First.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/First/src/Main.java b/First/src/Main.java new file mode 100644 index 0000000..3e59c38 --- /dev/null +++ b/First/src/Main.java @@ -0,0 +1,5 @@ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file From de5392c3b594da0b777b9ee67b1b02538dc5f3e3 Mon Sep 17 00:00:00 2001 From: hayoun Date: Mon, 3 Apr 2023 23:50:07 +0900 Subject: [PATCH 03/15] =?UTF-8?q?[feat]=20=EC=9E=90=EB=B0=94=20Animal=20Cl?= =?UTF-8?q?ass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Animal.java | 13 +++++++++++++ First/src/Main.java | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 First/src/Animal.java diff --git a/First/src/Animal.java b/First/src/Animal.java new file mode 100644 index 0000000..df43d96 --- /dev/null +++ b/First/src/Animal.java @@ -0,0 +1,13 @@ +public class Animal { + private String species; + private String name; + private int age; + + public void speak() { + System.out.println("동물이 소리를 냅니다."); + } + + public void drink() { + System.out.println("동물이 물을 마십니다."); + } +} diff --git a/First/src/Main.java b/First/src/Main.java index 3e59c38..cad4448 100644 --- a/First/src/Main.java +++ b/First/src/Main.java @@ -1,5 +1,9 @@ public class Main { public static void main(String[] args) { - System.out.println("Hello world!"); + + Animal animal=new Animal(); + animal.speak(); + } -} \ No newline at end of file +} + From 7bdf33b2c32c802f4690643cf55ae3175045f06b Mon Sep 17 00:00:00 2001 From: hayoun Date: Mon, 3 Apr 2023 23:55:38 +0900 Subject: [PATCH 04/15] =?UTF-8?q?[feat]=20=EC=83=9D=EC=84=B1=EC=9E=90?= =?UTF-8?q?=EB=A5=BC=20=EC=9D=B4=EC=9A=A9=ED=95=9C=20=ED=8E=B8=EC=9D=98?= =?UTF-8?q?=EC=A0=90=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/ConvenienceStore.java | 41 +++++++++++++++++++++++++++++++++ First/src/Main.java | 6 +++++ 2 files changed, 47 insertions(+) create mode 100644 First/src/ConvenienceStore.java diff --git a/First/src/ConvenienceStore.java b/First/src/ConvenienceStore.java new file mode 100644 index 0000000..90a1c18 --- /dev/null +++ b/First/src/ConvenienceStore.java @@ -0,0 +1,41 @@ +public class ConvenienceStore { + + String brand; + String address; + + int staffCount; + int visitorCount; + + public ConvenienceStore(String brand,String address,int staffCount,int visiotrCount){ + this.brand=brand; + this.address=address; + this.staffCount=staffCount; + this.visitorCount=visiotrCount; + } + public void addStaffCount() { + staffCount++; + } + + public int getStaffCount() { + return staffCount; + } + + public void addVisitorCount() { + visitorCount++; + } + + public void initVisitorCount() { + visitorCount = 0; + } + + public int getVisitorCount() { + return visitorCount; + } + + public void printConvenienceStoreInfo() { + System.out.println("편의점 브랜드: " + brand); + System.out.println("편의점 주소: " + address); + System.out.println("편의점 직원 수: " + staffCount); + System.out.println("편의점 방문자 수: " + visitorCount); + } +} diff --git a/First/src/Main.java b/First/src/Main.java index cad4448..3bdffb8 100644 --- a/First/src/Main.java +++ b/First/src/Main.java @@ -4,6 +4,12 @@ public static void main(String[] args) { Animal animal=new Animal(); animal.speak(); + ConvenienceStore firstGS = new ConvenienceStore("GS 25", "지구 어딘가", 8, 0); + + firstGS.addStaffCount(); + firstGS.addVisitorCount(); + + firstGS.printConvenienceStoreInfo(); } } From deae38ed027ceb52eff324b63dde038158a07c16 Mon Sep 17 00:00:00 2001 From: hayoun Date: Mon, 3 Apr 2023 23:57:01 +0900 Subject: [PATCH 05/15] =?UTF-8?q?[feat]=20=EC=98=A4=EB=B2=84=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=94=A9,=20=EC=83=81=EC=86=8D=EC=9D=84=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9=ED=95=9C=20Dog=20Class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Dog.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 First/src/Dog.java diff --git a/First/src/Dog.java b/First/src/Dog.java new file mode 100644 index 0000000..64d67fd --- /dev/null +++ b/First/src/Dog.java @@ -0,0 +1,10 @@ +public class Dog extends Animal { + private String gender; + public void walk() { + System.out.println("강아지가 산책을 합니다."); + } + @Override + public void speak() { + System.out.println("월월"); + } +} \ No newline at end of file From c22f5d445e3f0ee7cdc4f144c273fe26591c065b Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:08:47 +0900 Subject: [PATCH 06/15] =?UTF-8?q?[feat]=20=EC=98=A4=EB=B2=84=EB=A1=9C?= =?UTF-8?q?=EB=94=A9=EC=9D=84=20=EC=9D=B4=EC=9A=A9=ED=95=9C=20Calculator?= =?UTF-8?q?=20Class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Calculator.java | 10 ++++++++++ First/src/Dog.java | 1 + First/src/Main.java | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 First/src/Calculator.java diff --git a/First/src/Calculator.java b/First/src/Calculator.java new file mode 100644 index 0000000..13fcc52 --- /dev/null +++ b/First/src/Calculator.java @@ -0,0 +1,10 @@ +public class Calculator { + Character operator; + public int add(int a, int b) { + return a + b; + } + public double add(double a, double b) { + return a + b; + } + //여기서는 리턴 타입이 다르기때문에 오버로딩이다! +} \ No newline at end of file diff --git a/First/src/Dog.java b/First/src/Dog.java index 64d67fd..6658cd4 100644 --- a/First/src/Dog.java +++ b/First/src/Dog.java @@ -3,6 +3,7 @@ public class Dog extends Animal { public void walk() { System.out.println("강아지가 산책을 합니다."); } + //오버라이딩은 부모 클래스의 동작을 재정의! @Override public void speak() { System.out.println("월월"); diff --git a/First/src/Main.java b/First/src/Main.java index 3bdffb8..f8c5863 100644 --- a/First/src/Main.java +++ b/First/src/Main.java @@ -10,6 +10,14 @@ public static void main(String[] args) { firstGS.addVisitorCount(); firstGS.printConvenienceStoreInfo(); + + Calculator calculator = new Calculator(); + + int intResult = calculator.add(1, 10); + double doubleResult = calculator.add(1, 10); + + System.out.println(intResult); + System.out.println(doubleResult); } } From c27be6424b3bee98274aed91a28c149fb877902c Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:10:52 +0900 Subject: [PATCH 07/15] =?UTF-8?q?[feat]=20=EC=9D=B8=ED=84=B0=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=EB=A5=BC=20=EC=9D=B4=EC=9A=A9=ED=95=9C=20Spo?= =?UTF-8?q?rtsCar=20Class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Car.java | 4 ++++ First/src/SportsCar.java | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 First/src/Car.java create mode 100644 First/src/SportsCar.java diff --git a/First/src/Car.java b/First/src/Car.java new file mode 100644 index 0000000..f338fe4 --- /dev/null +++ b/First/src/Car.java @@ -0,0 +1,4 @@ +public interface Car { + public abstract void turnOn(); + public abstract void turnOff(); +} diff --git a/First/src/SportsCar.java b/First/src/SportsCar.java new file mode 100644 index 0000000..77ff89c --- /dev/null +++ b/First/src/SportsCar.java @@ -0,0 +1,10 @@ +public class SportsCar implements Car{ + @Override + public void turnOn() { + System.out.println("스포츠카 시동 부릉"); + } + @Override + public void turnOff() { + System.out.println("스포츠카 시동 끄기"); + } +} From 96ac7e44aa6f456d2d86d5ac05f3245bcd98023e Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:12:43 +0900 Subject: [PATCH 08/15] =?UTF-8?q?[feat]=20=EC=B6=94=EC=83=81=20=EB=A9=94?= =?UTF-8?q?=EC=84=9C=EB=93=9C,=20Students=20Class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Person.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 First/src/Person.java diff --git a/First/src/Person.java b/First/src/Person.java new file mode 100644 index 0000000..d06366c --- /dev/null +++ b/First/src/Person.java @@ -0,0 +1,12 @@ +public abstract class Person { + private String gender; + + public abstract void walk(); +} + +class Student extends Person { + @Override + public void walk() { + System.out.println("학교로 걸어갈게요."); + } +} \ No newline at end of file From 6d547014ddfe33e317e019d418eb1410d3775785 Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:15:04 +0900 Subject: [PATCH 09/15] =?UTF-8?q?[feat]=20=EC=A0=9C=EB=84=A4=EB=A6=AD?= =?UTF-8?q?=EC=9D=84=20=EC=82=AC=EC=9A=A9=ED=95=9C=20GenericTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/GenericTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 First/src/GenericTest.java diff --git a/First/src/GenericTest.java b/First/src/GenericTest.java new file mode 100644 index 0000000..d0af27e --- /dev/null +++ b/First/src/GenericTest.java @@ -0,0 +1,19 @@ +class GenericClass { + T type; + E element; +} +class GenericMethod { + public T genericMethod(T type) { + return type; + } +} +public class GenericTest { + public static void main(String[] args) { + GenericClass genericClass = new GenericClass(); + GenericMethod genericMethod = new GenericMethod(); + + String hello = genericMethod.genericMethod("Hello"); + System.out.println(hello); + } + +} \ No newline at end of file From b066d0bc1054d3c1880298a00dc0ac390a7fbe2e Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:36:19 +0900 Subject: [PATCH 10/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20Bank=20Interface?= =?UTF-8?q?=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/Bank.java | 9 +++++++++ First/src/WooriBank.java | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 First/src/Bank.java create mode 100644 First/src/WooriBank.java diff --git a/First/src/Bank.java b/First/src/Bank.java new file mode 100644 index 0000000..e310ad5 --- /dev/null +++ b/First/src/Bank.java @@ -0,0 +1,9 @@ +public interface Bank { + public abstract void deposit(int money); + + + + public abstract void withdraw(int money); + public abstract void checkMoney(); + +} diff --git a/First/src/WooriBank.java b/First/src/WooriBank.java new file mode 100644 index 0000000..f217f39 --- /dev/null +++ b/First/src/WooriBank.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class WooriBank { +} From 1d2ae87f2a5081019056f9a58a791b94668b6613 Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:37:28 +0900 Subject: [PATCH 11/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20=EC=9A=B0=EB=A6=AC?= =?UTF-8?q?=EC=9D=80=ED=96=89=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/WooriBank.java | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/First/src/WooriBank.java b/First/src/WooriBank.java index f217f39..ec6236d 100644 --- a/First/src/WooriBank.java +++ b/First/src/WooriBank.java @@ -1,2 +1,23 @@ -package PACKAGE_NAME;public class WooriBank { +public class WooriBank implements Bank{ + + int currentMoney; + int telephone; + int webUrl; + + @Override + public void deposit(int money) { + this.currentMoney=this.currentMoney+money; + System.out.println(money+"만큼 입금되었습니다!"); + } + + @Override + public void withdraw(int money){ + this.currentMoney=this.currentMoney-money; + System.out.println(money+"만큼 출금되었습니다!"); + }; + @Override + public void checkMoney(){ + System.out.println("현재 은행에 남은 잔고는 "+this.currentMoney+"입니다!"); + }; + } From 8d9f80e16a47aabf37aade8eb315e8f16384171a Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:40:09 +0900 Subject: [PATCH 12/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20=EC=9D=80=ED=96=89?= =?UTF-8?q?=20=EC=B6=9C=EA=B8=88=20=EC=97=90=EB=9F=AC=ED=95=B8=EB=93=A4?= =?UTF-8?q?=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/WooriBank.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/First/src/WooriBank.java b/First/src/WooriBank.java index ec6236d..f7d7562 100644 --- a/First/src/WooriBank.java +++ b/First/src/WooriBank.java @@ -12,8 +12,12 @@ public void deposit(int money) { @Override public void withdraw(int money){ + if(this.currentMoney-money<0){ + System.out.println("잔고가 부족해 출금할 수 없습니다!"); + } + else{ this.currentMoney=this.currentMoney-money; - System.out.println(money+"만큼 출금되었습니다!"); + System.out.println(money+"만큼 출금되었습니다!");} }; @Override public void checkMoney(){ From 9eefc8d6933eb6b477b733d862b401c078430575 Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:46:12 +0900 Subject: [PATCH 13/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20=EC=9A=B0=EB=A6=AC?= =?UTF-8?q?=EC=9D=80=ED=96=89=20=EC=83=9D=EC=84=B1=EC=9E=90=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/WooriBank.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/First/src/WooriBank.java b/First/src/WooriBank.java index f7d7562..f12a6ad 100644 --- a/First/src/WooriBank.java +++ b/First/src/WooriBank.java @@ -1,9 +1,15 @@ public class WooriBank implements Bank{ int currentMoney; - int telephone; - int webUrl; + String telephone; + String webUrl; + public WooriBank(int currentMoney,String telephone,String webUrl){ + this.currentMoney=currentMoney; + this.telephone=telephone; + this.webUrl=webUrl; + System.out.println("은행 생성완료!"); + } @Override public void deposit(int money) { this.currentMoney=this.currentMoney+money; From 063871b03ec30a674fb2c3083f7a0c862fd1f9ce Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:47:33 +0900 Subject: [PATCH 14/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20=EC=8B=AC=ED=99=94?= =?UTF-8?q?=20=EA=B3=BC=EC=A0=9C=20=ED=8C=8C=EC=9D=BC=20=EA=B5=AC=EC=A1=B0?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/.idea/uiDesigner.xml | 124 ++++++++++++++++++++++ First/src/{ => HardMisson}/Bank.java | 2 + First/src/{ => HardMisson}/WooriBank.java | 6 +- 3 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 First/.idea/uiDesigner.xml rename First/src/{ => HardMisson}/Bank.java (88%) rename First/src/{ => HardMisson}/WooriBank.java (91%) diff --git a/First/.idea/uiDesigner.xml b/First/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/First/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/First/src/Bank.java b/First/src/HardMisson/Bank.java similarity index 88% rename from First/src/Bank.java rename to First/src/HardMisson/Bank.java index e310ad5..13d38d3 100644 --- a/First/src/Bank.java +++ b/First/src/HardMisson/Bank.java @@ -1,3 +1,5 @@ +package HardMisson; + public interface Bank { public abstract void deposit(int money); diff --git a/First/src/WooriBank.java b/First/src/HardMisson/WooriBank.java similarity index 91% rename from First/src/WooriBank.java rename to First/src/HardMisson/WooriBank.java index f12a6ad..8f58711 100644 --- a/First/src/WooriBank.java +++ b/First/src/HardMisson/WooriBank.java @@ -1,4 +1,8 @@ -public class WooriBank implements Bank{ +package HardMisson; + +import HardMisson.Bank; + +public class WooriBank implements Bank { int currentMoney; String telephone; From 71339c290244f140c7238511b2196e51ac2b0ccd Mon Sep 17 00:00:00 2001 From: hayoun Date: Tue, 4 Apr 2023 00:52:08 +0900 Subject: [PATCH 15/15] =?UTF-8?q?[=EC=8B=AC=ED=99=94]=20BankUser=EB=A5=BC?= =?UTF-8?q?=20=ED=86=B5=ED=95=B4=20=EB=A7=8C=EB=93=A0=20=EC=9D=80=ED=96=89?= =?UTF-8?q?=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- First/src/HardMisson/BankUser.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 First/src/HardMisson/BankUser.java diff --git a/First/src/HardMisson/BankUser.java b/First/src/HardMisson/BankUser.java new file mode 100644 index 0000000..fa87ad0 --- /dev/null +++ b/First/src/HardMisson/BankUser.java @@ -0,0 +1,14 @@ +package HardMisson; + +public class BankUser { + public static void main(String[] args) { + WooriBank wooriBank=new WooriBank(0,"010-1234-5678","www.wooribank.com"); + //인스턴스 생성,힙에 할당되게 됩니당 + wooriBank.deposit(1000); + wooriBank.checkMoney(); + wooriBank.withdraw(2000);// 에러 처리 발생~ + } + + + +}