์กฐ๋˜ ์‹ ๊ฒฝ ์•ˆ์“ฐ๋‹ค๊ฐ€ ์ฑ… ์ฝ๋Š”๋ฐ ์ž๊พธ ๋‘๊ฐœ๋ฅผ ํ˜ผ์šฉํ•˜๊ธธ๋ž˜ ์™œ๊ทธ๋Ÿฐ๊ฐ€ ํ–ˆ๋”๋‹ˆ ์ธ์Šคํ„ด์Šค์™€ ๊ฐ์ฒด๋ฅผ ๋‹ค๋ฅธ ์˜๋ฏธ๋กœ ์‚ฌ์šฉํ•˜๋”๋ผ

๊ทธ๋ž˜์„œ ์กฐ๊ธˆ ์•Œ์•„๋ดค๋‹ค


Helloย hello;ย // ํด๋ž˜์Šค ์„ ์–ธ

hello =ย newย Hello();ย // ์ธ์Šคํ„ด์Šคํ™”

helloย // ์ธ์Šคํ„ด์Šคํ™” ๋œ ์ธ์Šคํ„ด์Šค(๊ฐ์ฒด)


์žŠ๊ณ ์žˆ์—ˆ๋Š”๋ฐ ํ”ํžˆ ์ฑ…์—์„œย ํด๋ž˜์Šค๋ฅผ ๋ถ•์–ด๋นต ํ‹€, ๊ฐ์ฒด๋ฅผ ๋ถ•์–ด๋นต์œผ๋กœ ํ‘œํ˜„ํ•˜์ž–์•„?

๊ทธ๋Ÿฌ๋ฉด ์ธ์Šคํ„ด์Šค๋Š” ๋ถ•์–ด๋นต์˜ ๋‚ด์šฉ๋ฌผ๊ฐ™์€๊ฑฐ๋ผ๊ณ  ๋ณธ๋‹ค


ํ‘œ๋กœ ํ‘œํ˜„ํ•˜์ž๋ฉด ์•„๋ž˜์™€ ๊ฐ™๋‹ค


ย  ย ํด๋ž˜์Šค(Class)

ย  ย ์ธ์Šคํ„ด์Šค(Instance of an Object)

ย  ย ๊ฐ์ฒด(Object)ย 

ย  ย ๋ถ•์–ด๋นต ํ‹€

ย  ย ํŒฅ๊ณผ ๋ฐ€๊ฐ€๋ฃจ ๋ฐ˜์ฃฝ

ย  ย ๋ถ•์–ด๋นต

ย 

์œ„ํ‚คํ”ผ๋””์•„์—์„œ๋Š” ์ธ์Šคํ„ด์Šค๋ฅผ ๊ฐ์ฒด๋ฅผ ๋ณด๋‹ค ๋” ๊ตฌ์ฒด์ ์ธ ์˜๋ฏธ๋กœ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๋˜์–ด์žˆ๋‹ค

("instance" emphasizes the distinct identity of the object.) -ย ์ถœ์ฒ˜:ย https://en.wikipedia.org/wiki/Instance_(computer_science)