Tinkerbell Glitter
[250102] instance method, class method, static method์˜ ํŠน์ง•๊ณผ ์ฐจ์ด์ 
Back End ๐Ÿ“ฒ/Python ๐Ÿ’ป
์ธ์Šคํ„ด์Šค ๋ฉ”์„œ๋“œ (Instance Method) ๋ž€?1. ์ธ์Šคํ„ด์Šค ๋ฉ”์„œ๋“œ (Instance Method) ์ •์˜ํด๋ž˜์Šค ๋‚ด๋ถ€์—์„œ ์ƒ์„ฑ๋œ ์ธ์Šคํ„ด์Šค ๊ฐ์ฒด์— ์ ‘๊ทผํ•˜๋Š” ๋ฉ”์„œ๋“œ์ด๋‹คํŠน์ง•:์ฒซ ๋ฒˆ์งธ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ self๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค์ธ์Šคํ„ด์Šค ๋ณ€์ˆ˜์™€ ์ธ์Šคํ„ด์Šค ๋ฉ”์„œ๋“œ์— ์ ‘๊ทผ ๊ฐ€๋Šฅ๊ฐ์ฒด ๋ณ„๋กœ ๋‹ค๋ฅธ ๋™์ž‘์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Œ์‚ฌ์šฉ ์˜ˆ์‹œ: ์ธ์Šคํ„ด์Šค ๋ณ„ ๋ฐ์ดํ„ฐ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ฑฐ๋‚˜ ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹คclass MyClass: def __init__(self, value): self.value = value def instance_method(self): return f"Instance value is {self.value}"obj = MyClass(10)print(obj.instance_method()) ..