๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿš— Major Study (Bachelor)/๐ŸŸ  JAVA Programming

JAVA ํ”„๋กœ๊ทธ๋ž˜๋ฐ 6.3

by UKHYUN22 2021. 10. 28.
728x90

6.3 Designing Methods Top-Down Design

 

Private helper method

 

Divide and conquer ๋ฐฉ์‹์œผ๋กœ ๋‚˜๋ˆ ์„œ ๊ณต๋žตํ•˜๋Š” ๊ฒƒ

 

 

Public์€ ๋ฐ”๊นฅ์—์„œ ํ•„์š”๋กœ ํ•˜๋Š” ์—…๋ฌด๋ฅผ ์ˆ˜ํ–‰ํ•˜๋„๋ก Public์œผ๋กœ ์ •์˜๋˜์–ด ์žˆ๊ณ 

Public ๋ฉ”์†Œ๋“œ๋ฅผ ๊ตฌ์„ฑํ•˜๊ณ  ๋„์™€์ฃผ๊ธฐ ์œ„ํ•ด์„œ private๋กœ ์„ ์–ธํ•œ๋‹ค.

 

 

 

driver program, stub

 

ํ…Œ์ŠคํŠธ ํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ๋“œ๋ผ์ด๋ฒ„ ํ”„๋กœ๊ทธ๋žจ์ด๋ผ๊ณ  ๋ถ€๋ฅด๊ธฐ๋„ ํ•œ๋‹ค.

๋“œ๋ผ์ด๋ฒ„ ํ”„๋กœ๊ทธ๋žจ์ด ํ…Œ์ŠคํŠธ ํ•˜๋Š” ๋‹จ๊ณ„๋ฅผ ๋‘ ๊ฐ€์ง€๋กœ ๋ถ€๋ฅผ ์ˆ˜ ์žˆ๋‹ค.

ํ•˜๋‚˜๋Š” Bottom up ํ•˜๋‚˜๋Š” Top down