diff --git "a/\354\244\200\355\231\230/chapter06.md" "b/\354\244\200\355\231\230/chapter06.md" new file mode 100644 index 0000000..d4e0dbb --- /dev/null +++ "b/\354\244\200\355\231\230/chapter06.md" @@ -0,0 +1,54 @@ + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก +1. this ์˜ˆ์•ฝ์–ด +2. ๊ฐ์ฒด ๊ฐ„ ํ˜‘๋ ฅ +3. static ๋ณ€์ˆ˜ +4. ๋ณ€์ˆ˜ ์œ ํšจ ๋ฒ”์œ„ +5. static ์‘์šฉ - ์‹ฑ๊ธ€ํ†ค ํŒจํ„ด +### ๐Ÿง  ๋ฐฐ์šด ์  +- this : ์ƒ์„ฑ๋œ ์ธ์Šคํ„ด์Šค ์Šค์Šค๋กœ๋ฅผ ๊ฐ€๋ฅดํ‚ค๋Š” ์˜ˆ์•ฝ์–ด +- this ์ถœ๋ ฅํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/584c5b29-db10-4e5e-bfd1-08b030993deb) +- ![image](https://github.com/user-attachments/assets/e6935719-46ae-4f38-8bda-71060e4259ca) +- this๋กœ ๋‹ค๋ฅธ ์ƒ์„ฑ์ž ํ˜ธ์ถœํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/26e36732-baeb-4fd2-ba49-989195294dd3) +- ![image](https://github.com/user-attachments/assets/66445622-8787-4ffe-8092-fc2c009cbcb0) +- this๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ฃผ์†Œ ๊ฐ’ ๋ฐ˜ํ™˜ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/0beee8b9-7072-4f59-b1e6-5ebdfae6936a) +- ![image](https://github.com/user-attachments/assets/7693e78d-94e6-43d7-9bd4-6fab44504c9a) +- ๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋žจ์€ ๊ฐ์ฒด๋ฅผ ์ •์˜ ํ•˜๊ณ  ๊ฐ์ฒด ๊ฐ„ ํ˜‘๋ ฅ์œผ๋กœ ๋งŒ๋“ค์–ด ์ง„๋‹ค๊ณ  ํ–ˆ๋‹ค +- ex) ![image](https://github.com/user-attachments/assets/fd09f943-adfa-42ba-a580-0e9a289d6325) +- ํ•™์ƒ ํด๋ž˜์Šค ๊ตฌํ˜„ +- ![image](https://github.com/user-attachments/assets/67e5a1d2-d781-49c2-a762-b940b5a04e47) +- ๋ฒ„์Šค ํด๋ž˜์Šค ๊ตฌํ˜„ +- ![image](https://github.com/user-attachments/assets/5885083f-01a4-442f-b07d-5510c29c6d52) +- ์ง€ํ•˜์ฒ  ํด๋ž˜์Šค ๊ตฌํ˜„ +- ![image](https://github.com/user-attachments/assets/79692f53-e370-4d2b-9b73-56e12388eeae) +- ๋ฒ„์Šค์™€ ์ง€ํ•˜์ฒ  ํƒ€๊ธฐ +- ![image](https://github.com/user-attachments/assets/41fa3b5f-2840-4c94-9498-e1ae50857096) +- ![image](https://github.com/user-attachments/assets/025d1611-e1d7-459c-8243-ca52b20567ad) +- static ๋ณ€์ˆ˜ : ํด๋ž˜์Šค์—์„œ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ณ€์ˆ˜ +- static ๋ณ€์ˆ˜ ์‚ฌ์šฉํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/b6610d1e-f807-43df-a922-cf5ab879bfe3) +- ๋ณ€์ˆ˜ ํ…Œ์ŠคํŠธ ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/2c751c62-9b7b-43ba-b1a1-ef9ec7b33425) +- ![image](https://github.com/user-attachments/assets/f13bfa10-1c1e-415e-8bc3-90e5d6410646) +- ํด๋ž˜์Šค ์ด๋ฆ„์œผ๋กœ static ๋ณ€์ˆ˜ ์ฐธ์กฐํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/af656a11-a19b-4334-89b4-e9c3d203a792) +- ![image](https://github.com/user-attachments/assets/da71ff0b-1276-4647-a39b-20bb40bf091b) +- seriaNum์˜ get(),set() ๋ฉ”์„œ๋“œ ์‚ฌ์šฉํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/d902ab83-62e9-4e87-b728-32a365143b38) +- ๋ณ€์ˆ˜ ์œ ํšจ ๋ฒ”์œ„ +- ![image](https://github.com/user-attachments/assets/803c0a3b-4fb4-47bc-aba6-d517ef697a94) +- ์‹ฑ๊ธ€ํ†ค ํŒจํ„ด +- ๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋žจ์—์„œ ์ธ์Šคํ„ด์Šค๋ฅผ ๋‹จ ํ•˜๋‚˜๋งŒ ์ƒ์„ฑํ•˜๋Š” ๋””์ž์ธ ํŒจํ„ด +- ์‹ฑ๊ธ€ํ†ค ํŒจํ„ด์œผ๋กœ ํšŒ์‚ฌ ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +- 1๋‹จ๊ณ„ ์ƒ์„ฑ์ž๋ฅผ private์œผ๋กœ ๋งŒ๋“ค๊ธฐ +- ![image](https://github.com/user-attachments/assets/96b0e174-d6bc-4aa4-9ae5-a42a353dc6c6) +- 2๋‹จ๊ณ„ static์œผ๋กœ ์œ ์ผ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ +- ![image](https://github.com/user-attachments/assets/e9c4f9b8-7278-4997-b299-dcd0cbcc716d) +- 3๋‹จ๊ณ„ ์™ธ๋ถ€์—์„œ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋Š” public ๋ฉ”์„œ๋“œ ๋งŒ๋“ค๊ธฐ +- ![image](https://github.com/user-attachments/assets/f908eb3e-7e63-47c0-ba6f-22b45b286381) +- 4๋‹จ๊ณ„ ์‹ค์ œ๋กœ ์‚ฌ์šฉํ•˜๋Š” ์ฝ”๋“œ ๋งŒ๋“ค๊ธฐ +- ![image](https://github.com/user-attachments/assets/cd0dd064-f765-4a97-ab21-e3fea554f62a) + diff --git "a/\354\244\200\355\231\230/chapter07.md" "b/\354\244\200\355\231\230/chapter07.md" new file mode 100644 index 0000000..0acb7c8 --- /dev/null +++ "b/\354\244\200\355\231\230/chapter07.md" @@ -0,0 +1,24 @@ + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก + 1. ๋ฐฐ์—ด์ด๋ž€ + 2. ๋‹ค์ฐจ์› ๋ฐฐ์—ด + 3. ArrayList ํด๋ž˜์Šค ์‚ฌ์šฉํ•˜๊ธฐ + 4. ๋ฐฐ์—ด ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ +### ๐Ÿง  ๋ฐฐ์šด ์  +- ๋ฐฐ์—ด ์ดˆ๊ธฐํ™” ํ•˜๊ณ  ์ถœ๋ ฅํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/7f461faf-aadc-40af-bd6f-28bd936f1ba9) +- ![image](https://github.com/user-attachments/assets/df80d09f-e43e-41cc-8abe-39b6afbad0cc) +- ๋ฐฐ์—ด ๊ธธ์ด๋งŒํผ ์ถœ๋ ฅํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/c51a594e-abcd-4b83-9362-88926a071dcf) +- ๋ฐฐ์—ด์˜ ์œ ํšจํ•œ ์š”์†Œ ๊ฐ’ ์ถœ๋ ฅํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/69e68b8a-86dd-4559-b675-37326ff351cf) +- ๋ฌธ์ž ์ €์žฅ ๋ฐฐ์—ด ๋งŒ๋“ค๊ธฐ +- ![image](https://github.com/user-attachments/assets/0a26aa89-b937-4df0-a5d2-a89817d2e24d) +- ๊ฐ์ฒด ๋ฐฐ์—ด ์‚ฌ์šฉํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/5fca6865-4030-466a-9199-acc974547fe0) +- ๊ฐ ๋ฐฐ์—ด ์š”์†Œ์— ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•ด ๋„ฃ๊ธฐ +- ![image](https://github.com/user-attachments/assets/f8ed8189-559a-420a-8133-7973eb1a237d) +- ์ด์ฐจ์› ๋ฐฐ์—ด ์ดˆ๊ธฐํ™” ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/ae6627f7-7e34-4d93-8cd4-f05d5bc40758) +- ArraryList ํด๋ž˜์Šค ์‚ฌ์šฉํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/b733ce6f-d6cb-462e-9c0a-a3ede3bfb1b0) diff --git "a/\354\244\200\355\231\230/chapter08.md" "b/\354\244\200\355\231\230/chapter08.md" new file mode 100644 index 0000000..4a386dc --- /dev/null +++ "b/\354\244\200\355\231\230/chapter08.md" @@ -0,0 +1,144 @@ + + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก +1. ์ƒ์†์ด๋ž€ +2. ์ƒ์†์—์„œ ํด๋ž˜์Šค ์ƒ์„ฑ๊ณผ ํ˜• ๋ณ€ํ™˜ +3. ๋ฉ”์„œ๋“œ ์˜ค๋ฒ„๋ผ์ด๋”ฉ +4. ๋‹คํ˜•์„ฑ +5. ๋‹คํ˜•์„ฑ ํ™œ์šฉ +6. ๋‹ค์šด ์บ์ŠคํŒ…๊ณผ instanceof +### ๐Ÿง  ๋ฐฐ์šด ์  +- ์ƒ์†์ด๋ž€ +- Bํด๋ž˜์Šค๊ฐ€ Aํด๋ž˜์Šค๋ฅผ ์ƒ์† ๋ฐ›์•˜์„๋•Œ Bํด๋ž˜์Šค๋Š” Aํด๋ž˜์Šค์˜ ๋ณ€์ˆ˜๋‚˜ ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. +- Customer ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/7c266bc1-c9d9-42dd-9be4-d3f43d4b90c2) +- vip ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/b54b24a0-e7c6-4d6a-8f39-15d0b3099968) +customer ์ฝ”๋“œ์—์„œ ๋ญ”๊ฐ€ ์ž˜๋ชปํ•ด์„œ ๊ทธ ๋ถ€๋ถ„๋งŒ ๋‚˜์ค‘์— ๋‹ค์‹œ ์ถ”๊ฐ€ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. +- ๋‹คํ˜•์„ฑ์ด๋ž€ +- ํ•˜๋‚˜์˜ ์ฝ”๋“œ๊ฐ€ ์—ฌ๋Ÿฌ ์ž๋ฃŒํ˜•์œผ๋กœ ๊ตฌ๋ถ„๋˜์–ด ์‹คํ–‰๋˜๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค. +- ๋‹คํ–ฅ์„ฑ ํ…Œ์ŠคํŠธ ํ•˜๊ธฐ +``` +package chapter08.polymorphism; + +class Animal { + public void move() { + System.out.println("๋™๋ฌผ์ด ์›€์ง์ž…๋‹ˆ๋‹ค"); + } +} + +class Human extends Animal { + public void move() { + System.out.println("์‚ฌ๋žŒ์ด ๋‘ ๋ฐœ๋กœ ๊ฑท์Šต๋‹ˆ๋‹ค"); + } +} + +class Tiger extends Animal { + public void move() { + System.out.println("ํ˜ธ๋ž‘์ด๊ฐ€ ๋„ค ๋ฐœ๋กœ ๋œ๋‹ˆ๋‹ค."); + } +} + +class Eagle extends Animal { + public void move() { + System.out.println("๋…์ˆ˜๋ฆฌ๊ฐ€ ํ•˜๋Š˜์„ ๋‚ฉ๋‹ˆ๋‹ค"); + } +} + +public class AnimalTest1 { + public static void main(String[] args) { + AnimalTest1 aTest = new AnimalTest1(); // ์ž๊ธฐ ์ž์‹  ๊ฐ์ฒด ์ƒ์„ฑ + aTest.moveAnimal(new Human()); + aTest.moveAnimal(new Tiger()); + aTest.moveAnimal(new Eagle()); + } + + public void moveAnimal(Animal animal) { + animal.move(); + } +} + +``` +![image](https://github.com/user-attachments/assets/809f2846-37de-44ce-9898-dce2da34f779) +- instanceof๋กœ ์›๋ž˜ ์ธ์Šคํ„ด์Šคํ˜• ํ™•์ธ ํ›„ ๋‹ค์šด ์บ์ŠคํŒ… ํ•˜๊ธฐ +''' +package chapter08.polymorphism; +import java.util.ArrayList; + +class Animal { + public void move() { + System.out.println("๋™๋ฌผ์ด ์›€์ง์ž…๋‹ˆ๋‹ค."); + } +} + +class Human extends Animal { + public void move() { + System.out.println("์‚ฌ๋žŒ์ด ๋‘ ๋ฐœ๋กœ ๊ฑท์Šต๋‹ˆ๋‹ค."); + } + + public void readBook() { + System.out.println("์‚ฌ๋žŒ์ด ์ฑ…์„ ์ฝ์Šต๋‹ˆ๋‹ค."); + } +} + +class Tiger extends Animal { + public void move() { + System.out.println("ํ˜ธ๋ž‘์ด๊ฐ€ ๋„ค ๋ฐœ๋กœ ๋œ๋‹ˆ๋‹ค."); + } + + public void hunting() { + System.out.println("ํ˜ธ๋ž‘์ด๊ฐ€ ์‚ฌ๋ƒฅ์„ ํ•ฉ๋‹ˆ๋‹ค."); + } +} + +class Eagle extends Animal { + public void move() { + System.out.println("๋…์ˆ˜๋ฆฌ๊ฐ€ ํ•˜๋Š˜์„ ๋‚ฉ๋‹ˆ๋‹ค."); + } + + public void flying() { + System.out.println("๋…์ˆ˜๋ฆฌ๊ฐ€ ๋‚ ๊ฐœ๋ฅผ ์ญ‰ ํŽด๊ณ  ๋ฉ€๋ฆฌ ๋‚ ์•„๊ฐ‘๋‹ˆ๋‹ค."); + } +} +public class AnimalTest { + ArrayList aniList = new ArrayList(); // Animal ํƒ€์ž…์˜ ArrayList ์„ ์–ธ + + public static void main(String[] args) { + AnimalTest aTest = new AnimalTest(); + System.out.println("์›๋ž˜ ์œต์œผ๋กœ ๋‹ค๋ฃฐ ์บ์ŠคํŒ…"); + aTest.addAnimal(); + aTest.testCasting(); + } + + public void addAnimal() { + aniList.add(new Human()); // Human ๊ฐ์ฒด ์ถ”๊ฐ€ + aniList.add(new Tiger()); // Tiger ๊ฐ์ฒด ์ถ”๊ฐ€ + aniList.add(new Eagle()); // Eagle ๊ฐ์ฒด ์ถ”๊ฐ€ + + for (Animal ani : aniList) { + ani.move(); // ๊ฐ ๋™๋ฌผ์˜ move ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ + } + } + + public void testCasting() { + for (int i = 0; i < aniList.size(); i++) { // ๋ชจ๋“  ์š”์†Œ๋ฅผ ํ•˜๋‚˜์”ฉ ๋Œ๋ฉด์„œ + Animal ani = aniList.get(i); // Animal ํƒ€์ž…์œผ๋กœ ๊ฐ€์ ธ์˜ด + if (ani instanceof Human) { + Human h = (Human) ani; // Human์ด๋ฉด ์บ์ŠคํŒ… + h.readBook(); // Human์˜ readBook ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ + } else if (ani instanceof Tiger) { + Tiger t = (Tiger) ani; // Tiger์ด๋ฉด ์บ์ŠคํŒ… + t.hunting(); // Tiger์˜ hunting ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ + } else if (ani instanceof Eagle) { + Eagle e = (Eagle) ani; // Eagle์ด๋ฉด ์บ์ŠคํŒ… + e.flying(); // Eagle์˜ flying ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ + } else { + System.out.println("์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์ž…๋‹ˆ๋‹ค."); // ์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์ผ ๊ฒฝ์šฐ + } + } + } +} + +''' +- ![image](https://github.com/user-attachments/assets/889a55fc-6336-48d1-a8a8-be06c785e2b3) +- diff --git "a/\354\244\200\355\231\230/chapter09.md" "b/\354\244\200\355\231\230/chapter09.md" new file mode 100644 index 0000000..71e2183 --- /dev/null +++ "b/\354\244\200\355\231\230/chapter09.md" @@ -0,0 +1,47 @@ + + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก +1. ์ถ”์ƒ ํด๋ž˜์Šค +2. ํƒฌํ”Œ๋ฆฟ ๋ฉ”์„œ๋“œ +3. ํ…œํ”Œ๋ฆฟ ๋ฉ”์†Œ๋“œ ์‘์šฉํ•˜๊ธฐ +4. final ์˜ˆ์•ฝ์–ด +### ๐Ÿง  ๋ฐฐ์šด ์  +- ์ถ”์ƒ ํด๋ž˜์Šค๋ž€? +- ์ถ”์ƒ ํด๋ž˜์Šค๋Š” ํ•ญ์ƒ ์ถ”์ƒ ๋ฉ”์„œ๋“œ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค. ์ถ”์ƒ ๋ฉ”์„œ๋“œ๋Š” ๊ตฌํ˜„ ์ฝ”๋“œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ํ•จ์ˆ˜์˜ ๊ตฌํ˜„ ์ฝ”๋“œ๊ฐ€ ์—†๋‹ค๋Š” ๊ฒƒ์€ ํ•จ์ˆ˜ ๋ชธ์ฒด๊ฐ€ ์—†๋‹ค๋Š” ๋œป +![image](https://github.com/user-attachments/assets/f8c82850-a8ff-4e6f-883c-af3c03d74355) +์ค‘๊ด„ํ˜ธ๋กœ ๊ฐ์‹ผ ๋ถ€๋ถ„์€ ํ•จ์ˆ˜์˜ ๊ตฌํ˜„๋ถ€๋ผ๊ณ  ํ•œ๋‹ค. +์ด ๋ถ€๋ถ„์ด ์—†๋Š” ํ•จ์ˆ˜๋Š” ์ถ”์ƒ ํ•จ์ˆ˜์ด๊ณ  ์ž๋ฐ”์—์„œ๋Š” ์ถ”์ƒ ๋ฉ”์„œ๋“œ๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. +์ถ”์ƒ๋ฉ”์„œ๋“œ๋Š” ๊ทธ๋ฆผ๊ณผ ๊ฐ™์ด ์„ ์–ธ๋งŒ ํ•˜๋ฉฐ abstract ์˜ˆ์•ฝ์–ด๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  {} ๋Œ€์‹ ์— ;๋ฅผ ์“ด๋‹ค. +![image](https://github.com/user-attachments/assets/b2a1393e-1bd9-41e5-8189-9cef5d7a6486) +- ์ถ”์ƒ ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/e97e8182-45b2-427f-9a53-978c36cebf5e) +- ์ถ”์ƒ ๋ฉ”์„œ๋“œ ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/d88f1a8a-3a67-4342-a592-f64cb6fbc8fe) +- NoteBook ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/799a67fe-1d38-4117-89ce-ffe274d5f710) +- MyNotebook ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/e8c392b6-0b6a-4e1f-bc2a-7102fa1e6bc3) +- ์ถ”์ƒ ํด๋ž˜์Šค ํ…Œ์ŠคํŠธ ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/ed7929a1-e7cb-4017-bf54-0b428abfa91e) +ํ•˜์ง€๋งŒ ํด๋ž˜์Šค๋ฅผ ์ธ์Šคํ„ด์Šค๋กœ ์ƒ์„ฑ ํ•  ์ˆ˜ ์—†๋‹ค๊ณ  ๋‚˜์˜จ๋‹ค. + +- ์ถ”์ƒํด๋ž˜์Šค์™€ ํ…œํ”Œ๋ฆฟ ๋ฉ”์„œ๋“œ +ํ…œํ”Œ๋ฆฟ ๋ฉ”์„œ๋“œ : ํ‹€์ด ์žˆ๋Š” ๋ฉ”์„œ๋“œ +![image](https://github.com/user-attachments/assets/d38aae5b-0c5f-435d-aab8-c1c587285a58) +- AIcar ํด๋ž˜์Šค ๊ตฌํ˜„ +![image](https://github.com/user-attachments/assets/2300a96f-bc06-4592-898b-aed083535dee) +- ManualCar +![image](https://github.com/user-attachments/assets/fb9927ad-e821-4c95-abd8-26671da8680f) +- ๋‘ ์ž๋™์ฐจ๊ฐ€ ์–ด๋–ป๊ฒŒ ์›€์ง์ด๋Š”์ง€ ํ™•์ธ +![image](https://github.com/user-attachments/assets/b3db1d3c-cb41-43e6-8512-3b34773173fd) + +playerLevel ์ถ”์ƒ ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/c169f37b-7eac-4076-9637-47617524bf64) +์ดˆ๋ณด์ž ๋ ˆ๋ฒจ ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/e07b3674-49ec-4a3f-b122-640c4b460424) +์ค‘๊ธ‰์ž +![image](https://github.com/user-attachments/assets/f7db5135-c74d-4d7e-81a6-a629793f3d23) +๊ณ ๊ธ‰์ž +![image](https://github.com/user-attachments/assets/218094a1-acae-4700-815c-c0dd5c388df2) +ํ…Œ์ŠคํŠธ ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰ํ•˜๊ธฐ +![image](https://github.com/user-attachments/assets/aa0b19f9-e7bf-4b47-865b-b50aa438670b) diff --git "a/\354\244\200\355\231\230/chapter10.md" "b/\354\244\200\355\231\230/chapter10.md" new file mode 100644 index 0000000..5b9a83f --- /dev/null +++ "b/\354\244\200\355\231\230/chapter10.md" @@ -0,0 +1,42 @@ + + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก +1.์ธํ„ฐํŽ˜์ด์Šค๋ž€ +2. ์ธํ„ฐํŽ˜์ด์Šค์™€ ๋‹คํ˜•์„ฑ +3. ์ธํ„ฐํŽ˜์ด์Šค ์š”์†Œ ์‚ดํŽด๋ณด๊ธฐ +4. ์ธํ„ฐํŽ˜์ด์Šค ํ™œ์šฉํ•˜๊ธฐ +### ๐Ÿง  ๋ฐฐ์šด ์  +์ธํ„ฐํŽ˜์ด์Šค๋ž€ +- ํด๋ž˜์Šค ํ˜น์€ ํ”„๋กœ๊ทธ๋žจ์ด ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๋ช…์‹œ์ ์œผ๋กœ ์„ ์–ธํ•˜๋Š” ์—ญํ•  +- ์ถ”์ƒ ๋ฉ”์„œ๋“œ์™€ ์ƒ์ˆ˜๋กœ๋งŒ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. +calc ์ธํ„ฐํŽ˜์ด์Šค ๋ถ€๋ถ„ ๋‹ค์‹œํ•ด์„œ ์ˆ˜์ •ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. +- scheduler ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ํ•˜๊ธฐ + + ![image](https://github.com/user-attachments/assets/ceaf39d2-bd97-4fcb-96c8-c08f96456e61) +- ์ˆœ์„œ๋Œ€๋กœ ๋ฐฐ๋ถ„ํ•˜๊ธฐ + ![image](https://github.com/user-attachments/assets/99dabce0-8682-4400-a454-1c4eaa04466c) +- ์งง์€ ๋Œ€๊ธฐ์—ด ๋จผ์ € ๋ฐฐ๋ถ„ํ•˜๊ธฐ + ![image](https://github.com/user-attachments/assets/73dbcee1-30db-4ed1-8204-77d3097a6624) +- ์šฐ์„ ์ˆœ์œ„์— ๋”ฐ๋ผ ๋ฐฐ๋ถ„ํ•˜๊ธฐ + ![image](https://github.com/user-attachments/assets/402b034b-8a0a-41c6-98e6-777ccccfea4b) +- ์ž…๋ ฅ ๋ฌธ์ž์— ๋”ฐ๋ผ ๋ฐฐ๋ถ„ ์ •์ฑ… ์ˆ˜ํ–‰ํ•˜๊ธฐ + ![image](https://github.com/user-attachments/assets/11fa8ed9-a9c4-4375-ba88-efe4d61dea2b) + + ![image](https://github.com/user-attachments/assets/0e196306-2bdb-4a53-9caf-c856f880b2ed) + +- shelf ํด๋ž˜์Šค ๋งŒ๋“ค๊ธฐ + + ![image](https://github.com/user-attachments/assets/f5488a2d-2388-4dae-b85f-0db5a7cca845) +- Queue ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ํ•˜๊ธฐ + + ![image](https://github.com/user-attachments/assets/8618936a-fcae-44e8-8e09-76c0216663c9) +- BookShelf ํด๋ž˜์Šค ๊ตฌํ˜„ํ•˜๊ธฐ + + ![image](https://github.com/user-attachments/assets/d9974401-88ad-430d-9b7a-18b6ebc2c90e) +- BookShelf ํ…Œ์ŠคํŠธ ํ•˜๊ธฐ + + ![image](https://github.com/user-attachments/assets/f3e8860c-5b7c-4efa-8742-801f2d963ef5) + ![image](https://github.com/user-attachments/assets/316f8a50-97cb-4452-9ea9-6e3fea0b8d70) + + + diff --git "a/\354\244\200\355\231\230/chapter_05.md" "b/\354\244\200\355\231\230/chapter_05.md" new file mode 100644 index 0000000..c0b1459 --- /dev/null +++ "b/\354\244\200\355\231\230/chapter_05.md" @@ -0,0 +1,48 @@ + + +## ๐ŸŒ… ๊ณต๋ถ€๊ธฐ๋ก +1. ๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋ž˜๋ฐ๊ณผ ํด๋ž˜์Šค +2. ํด๋ž˜์Šค ์‚ดํŽด๋ณด๊ธฐ +3. ๋ฉ”์„œ๋“œ +4. ํด๋ž˜์Šค์™€ ์ธ์Šคํ„ด์Šค +5. ์ƒ์„ฑ์ž +6. ์ฐธ์กฐ ์ž๋ฃŒํ˜• +### ๐Ÿง  ๋ฐฐ์šด ์  +- ํด๋ž˜์Šค ์ •์˜ + ![image](https://github.com/user-attachments/assets/e930df43-063d-402a-8fe4-4422491c243b) +- ๋ณ€์ˆ˜ ์ž๋ฃŒํ˜• +- ๊ธฐ๋ณธ ์ž๋ฃŒํ˜•:int,long,float,double +- ์ฐธ์กฐ ์ž๋ฃŒํ˜•:String, Data, Student +- ![image](https://github.com/user-attachments/assets/9f16a709-1d18-4dcd-904a-7a18a26df88d) +- ๋ฉ”์„œ๋“œ : ํด๋ž˜์Šค์˜ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•œ ๊ฒƒ +- ![image](https://github.com/user-attachments/assets/26856059-7cc7-4bb2-8124-bc8891b22172) +- ํ•จ์ˆ˜ ํ˜ธ์ถœํ•˜๊ณ  ๊ฐ’ ๋ฐ˜ํ™˜ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/2bb1dac2-9a56-4397-99c8-ef88c6ecaeb8) +- ![image](https://github.com/user-attachments/assets/c91c6bb9-b45c-4594-8ac7-d3930c118f49) +- ๋ฉ”์„œ๋“œ ๊ตฌํ˜„ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/b31bfed3-daba-41bd-a365-a8418c26683b) +- ํด๋ž˜์Šค์— ํ•จ์ˆ˜ ์ถ”๊ฐ€ ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/0a19c7ee-12a0-4f5d-b6e4-162c5e0bc068) +- ![image](https://github.com/user-attachments/assets/cf245be0-f71f-4337-8d7f-ad270f492a5d) +- ์ธ์Šคํ„ด์Šค : ๋ฉ”๋ชจ๋ฆฌ ๊ณต๊ฐ„์— ์ƒ์„ฑ๋œ ์ƒํƒœ -> ์ƒ์„ฑ๋œ ํด๋ž˜์Šค์˜ ์ธ์Šคํ„ด์Šค = ๊ฐ์ฒด +- ์ฐธ์กฐ ๊ฐ’ ์ถœ๋ ฅํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/784b08d8-39fa-4560-9d4a-6b616eab4cf6) +- ![image](https://github.com/user-attachments/assets/3f6745af-eee9-45d9-9e65-db3daeae7879) +- ์ƒ์„ฑ์ž ๊ฐ์ฒด๋ฅผ ์ฒ˜์Œ ๋งŒ๋“ค ๋•Œ ๋ฉค๋ฒ„ ๋ณ€์ˆ˜๋‚˜ ์ƒ์ˆ˜๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๊ฒƒ +- ๋””ํดํŠธ ์ƒ์„ฑ์ž: ์ž๋™์œผ๋กœ ๋งŒ๋“ค์–ด ์ฃผ๋Š” ์ƒ์„ฑ์ž +- ์ƒ์„ฑ์ž ๋งŒ๋“ค๊ธฐ, ์ƒ์„ฑ์ž ํ…Œ์ŠคํŠธ ํ•˜๊ธฐ, ์‚ฌ์šฉํ•˜๊ธฐ, ๊ตฌํ˜„ํ•˜๊ธฐ +- ![image](https://github.com/user-attachments/assets/17b3d29b-0c64-467a-9a1b-a637af706166) +- ![image](https://github.com/user-attachments/assets/e1ddca78-45b0-40f8-9932-0ec832379d0d) +- ์ฐธ์กฐ ์ž๋ฃŒํ˜• +- ํด๋ž˜์Šค ์ž๋ฃŒํ˜•์œผ๋กœ ์„ ์–ธํ•˜๋Š” ๊ฒƒ +- ํด๋ž˜์Šค ์ƒ์„ฑ +- ![image](https://github.com/user-attachments/assets/c625e222-f954-41bd-8c6f-acee457be2f2) +- ๋ณ€์ˆ˜ ์ถ”๊ฐ€ +- ![image](https://github.com/user-attachments/assets/964d150c-6c17-48fc-a04f-bb31318a2e45) +- Subjectํ˜•์„ ์‚ฌ์šฉํ•˜์—ฌ ์„ ์–ธ +- ![image](https://github.com/user-attachments/assets/3bfbe61d-172a-4278-bc1a-a6622b0f27b5) + +- +