{"id":493,"date":"2021-04-22T05:07:24","date_gmt":"2021-04-22T05:07:24","guid":{"rendered":"http:\/\/scrutineer.co.kr\/wordpress\/?p=493"},"modified":"2021-04-22T05:07:25","modified_gmt":"2021-04-22T05:07:25","slug":"%eb%aa%a8%eb%8d%98-%ec%9e%90%eb%b0%94-%ec%9d%b8-%ec%95%a1%ec%85%98-13%ec%9e%a5","status":"publish","type":"post","link":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/2021\/04\/22\/%eb%aa%a8%eb%8d%98-%ec%9e%90%eb%b0%94-%ec%9d%b8-%ec%95%a1%ec%85%98-13%ec%9e%a5\/","title":{"rendered":"\ubaa8\ub358 \uc790\ubc14 \uc778 \uc561\uc158 13\uc7a5"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ubaa8\ub358 \uc790\ubc14\uc5d0\uc11c \ucd94\uac00\ub41c, <strong>\uc778\ud130\ud398\uc774\uc2a4\uc5d0 \uba54\uc18c\ub4dc \ub0b4\uc6a9\uc744 \ub514\ud3f4\ud2b8\ub85c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uac83\uc744 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub77c\uace0 \ud55c\ub2e4.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ubcf4\ud1b5, API \uac1c\ubc1c\uc790\uc640 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ubc1b\uc544\ub2e4 \uc4f0\ub294 \uc11c\ube44\uc2a4 \uac1c\ubc1c\uc790\ub4e4\uc774 \uc870\uc9c1\uc774 \ubd84\ub9ac\ub418\uc5b4\uc11c \uc77c\ud560 \uacbd\uc6b0\uc5d0, <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">API\uac1c\ubc1c\uc790\ub294 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\uace0, \uc11c\ube44\uc2a4 \uac1c\ubc1c\uc790\ub4e4\uc740 \uadf8 \uc778\ud130\ud398\uc774\uc2a4\ub97c implement\ud558\uc5ec \uac1c\ubc1c\uc744 \ud558\uac8c \ub41c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc5c6\ub294 \ub808\uac70\uc2dc \uc790\ubc14\uc5d0\uc11c\uc758 \ubb38\uc81c\ub294<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>API\uac1c\ubc1c\uc790\uac00 \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ud2b9\uc815 \uba54\uc18c\ub4dc\ub97c \ucd94\uac00\ud558\uace0\uc790 \ud560 \ub54c<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\ubb38\uc81c\uac00 \uc0dd\uae34\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ud2b9\uc815 \uba54\uc18c\ub4dc A\ub97c \ucd94\uac00 &#8211;&gt; \uc778\ud130\ud398\uc774\uc2a4\ub97c implement\ud55c \ubaa8\ub4e0 \ud074\ub798\uc2a4\ub4e4\uc5d0 \ucef4\ud30c\uc77c\uc5d0\ub7ec \ube68\uac04 \ubd88 \ub4e4\uc5b4\uc634 &#8211;&gt; implement\ud55c \ubaa8\ub4e0 \ud074\ub798\uc2a4\ub4e4\uc5d0 A \uad6c\ud604\uc744 \ud574\uc57c \ud568<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc870\uae08 \ub354 \ubcf5\uc7a1\ud558\uace0 \uc138\ubc00\ud558\uac8c \ubcf4\uba74, &#8216;\ubc14\uc774\ub108\ub9ac \ud638\ud658\uc131&#8217;\uc5d0 \uc758\ud574 \uc0c8\ub85c \ucd94\uac00\ub41c \uba54\uc18c\ub4dc\ub97c \ud638\ucd9c\ud558\uc9c0 \uc54a\ub294 \ud55c \ubb38\uc81c\uac00 \uc77c\uc5b4\ub098\uc9c0 \uc54a\ub294\ub2e4\ub294 \ub0b4\uc6a9\ub3c4 \uc788\uc73c\ub098&#8230;..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc7a5\ub2f4\ud558\uac74\ub370 99%\uc758 \ud504\ub85c\uc81d\ud2b8\uac00 &#8216;\uc778\ud130\ud398\uc774\uc2a4 \ud558\ub098\u001d\ub9cc \ubc14\uafe8\uc73c\ub2c8, \uadf8 \uc778\ud130\ud398\uc774\uc2a4 \ud558\ub098\ub9cc \uc7ac\ucef4\ud30c\uc77c \ud574\uc11c \uc2e4 \uc11c\ube44\uc2a4\uc5d0 \ubc30\ud3ec&#8217; \ud558\ub294 \uadf8\ub7f0 \uc704\ud5d8\ud55c \ud589\uc704\ub97c \ud558\uc9c4 \uc54a\ub294\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc544\ubb34\ud2bc, \uc774\ub7f0 \uc778\ud130\ud398\uc774\uc2a4 \ubc84\uc800\ub2dd \ubc0f \ud638\ud658\uc131 \ubb38\uc81c \ub4f1\uc758 \uc774\uc288\uac00 \uc874\uc7ac\ud574\uc11c, &#8216;\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc&#8217; \ub77c\ub294 \uac83\uc774 \uc874\uc7ac\ud55c\ub2e4<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \ubb34\uc5c7\uc778\uac00<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub9d0 \uadf8\ub300\ub85c \uba54\uc18c\ub4dc\uc778\ub370, \ub514\ud3f4\ud2b8\ub85c \uad6c\ud604\ud55c \ub0b4\uc6a9\uc774 \ud3ec\ud568\ub418\uc5b4\uc788\ub294 \uba54\uc18c\ub4dc\uc774\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\ub294 \ud558\uc704 \ud074\ub798\uc2a4\uc5d0\uc11c, \uc778\ud130\ud398\uc774\uc2a4\uac00 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \uad6c\ud604\ud558\uc600\ub2e4\uba74,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \ud558\uc704 \ud074\ub798\uc2a4\uac00 \uad6c\ud604\ud55c\ub2e4<ul><li>\uad6c\ud604\ud55c \uba54\uc18c\ub4dc\uc758 \ub85c\uc9c1\uc774 \uc218\ud589\ub428<\/li><\/ul><\/li><li>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \ud558\uc704 \ud074\ub798\uc2a4\uac00 \uad6c\ud604\ud558\uc9c0 \uc54a\ub294\ub2e4<ul><li>\uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uc815\uc758\ud55c \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uc758 \ub85c\uc9c1\uc774 \uc218\ud589\ub428<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc758 \ub3d9\uc791\uc744 \ud558\uac8c \ub41c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc55e\uc11c \ub9d0\ud588\ub358, &#8216;\uc778\ud130\ud398\uc774\uc2a4\uc758 \uba54\uc18c\ub4dc \ucd94\uac00\/\uc218\uc815\uc774 \uc6a9\uc774\ud568&#8217; \uc758 \uc7a5\uc810\uc744 \uac16\uace0 \uac08 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\ud559\uc0dd\ub54c \uc790\ubc14\ub97c \ucc98\uc74c \ubc30\uc6b8\ub54c\ubd80\ud130 \uc774 \ubb38\uc81c\ub294 \uc778\uc9c0\ud560 \uc218 \uc788\uc5c8\ub294\ub370&#8230; \uc218\ub144\uc774\ub098 \uc9c0\ub09c \ud6c4\uc5d0\uc57c \uc27d\uac8c \ud574\uacb0\ud560 \uc218 \uc788\ub294 spec\uc774 \ub098\uc624\ub2e4\ub2c8&#8230;.<\/p><\/blockquote>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc \ud65c\uc6a9 \ud328\ud134<\/h2>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\uc120\ud0dd\ud615 \uba54\uc18c\ub4dc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Iterator \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 remove\uba54\uc18c\ub4dc\uac00 \uc874\uc7ac\ud558\ub294\ub370, \ub808\uac70\uc2dc \uc790\ubc14\uc5d0\uc11c\ub294 remove\ub97c \uadf8\ub0e5 \uba4d\ud145\uad6c\ub9ac \uad6c\ud604\uc73c\ub85c \uac15\uc81c(?)\uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud558\uc600\uc5c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ubaa8\ub358 \uc790\ubc14(8) \ub85c \ub118\uc5b4\uc624\uba74\uc11c, Iterator\uc778\ud130\ud398\uc774\uc2a4\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 remove\uba54\uc18c\ub4dc\ub97c \uc778\ud130\ud398\uc774\uc2a4 \ub808\ubca8\uc5d0\uc11c \ube48 \uad6c\ud604\uc73c\ub85c \uc81c\uacf5\ud574 \uc900\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">interface Iterator&lt;T> {\n  boolean hasNext();\n  T next();\n  default void remove() {\n    throw new UnsupportedOperationException();\n  }\n}<\/pre>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\ub3d9\uc791 \ub2e4\uc911\uc0c1\uc18d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uc790\ubc14\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ud074\ub798\uc2a4 \ub2e4\uc911\uc0c1\uc18d\uc774 \ubd88\uac00\ub2a5\ud558\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud558\uc704 \ud074\ub798\uc2a4\ub294 \uc0c1\uc704 \ud074\ub798\uc2a4\ub97c &#8216;\ub2e8 \ud558\ub098\ub9cc&#8217; extends \ud560 \uc218 \uc788\uae30 \ub54c\ubb38&#8230;(\uc815\ucc45)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud558\uc704 \ud074\ub798\uc2a4\ub294 \uc0c1\uc704 \uc778\ud130\ud398\uc774\uc2a4\ub97c &#8216;\uc5ec\ub7ec\uac1c&#8217; implement \ud560 \uc218 \uc788\ub2e4. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uadf8\ub7f0\ub370 (\ub808\uac70\uc2dc \uc790\ubc14 \uae30\uc900\uc73c\ub85c\ub294) \uc778\ud130\ud398\uc774\uc2a4\ub294 \uba54\uc18c\ub4dc\uc758 body\ub97c \uac00\uc9c8 \uc218 \uc5c6\uae30\uc5d0, &#8216;\ub3d9\uc791\uc744&#8217; \ub2e4\uc911\uc0c1\uc18d \ud558\ub294\uac83\uc740 \ubd88\uac00\ub2a5\ud588\ub2e4. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud558\uc9c0\ub9cc \uc790\ubc148 \uc774\ud6c4\uc5d0 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc0dd\uae30\uba74\uc11c, \ub3d9\uc791\ub3c4 \ub2e4\uc911\uc0c1\uc18d\uc744 \ubc1b\uc744 \uc218 \uc788\uac8c \ub418\uba74\uc11c \uc870\uae08 \ub354 \uac1c\ubc1c \ubc0f \uad6c\ud604\uc758 \ud3b8\uc758\uc131\ub3c4 \uc99d\ub300\ub418\uc5c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\uc608\uc81c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uac8c\uc784\uc758 \uc624\ube0c\uc81d\ud2b8\uac00 \uc6c0\uc9c1\uc774\ub294 \uac83\uc744 \uc778\ud130\ud398\uc774\uc2a4\ub85c \uad6c\ud604\ud55c\ub2e4\uace0 \ud558\uc790<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8216;\uc6c0\uc9c1\uc784&#8217;\uc774\ub77c\ub294 \uac83\uc744 \ub2e4\uc74c\uacfc \uac19\uc774 \uc138\uac1c\uc758 \uc885\ub958\ub85c \ub098\ub20c \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\ud68c\uc804 (Rotatable)<\/li><li>\uc88c\ud45c\uc774\ub3d9 (Moveable)<\/li><li>\ud06c\uae30\ubcc0\uacbd (Resizable)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uadf8\ub9ac\uace0 \uc774 \uc138\uac1c\uc758 \uc885\ub958\ub97c \uac01\uac01\uc758 \uc778\ud130\ud398\uc774\uc2a4\ub85c \uad6c\ud604\ud55c\ub2e4<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"206\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-1.png\" alt=\"\" class=\"wp-image-498\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-1.png 753w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-1-300x82.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"384\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-2.png\" alt=\"\" class=\"wp-image-499\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-2.png 480w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-2-300x240.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"308\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-3.png\" alt=\"\" class=\"wp-image-500\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-3.png 683w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-3-300x135.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub807\uac8c \uc138\uac1c\uc758 \uc6c0\uc9c1\uc784 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uc801\uc808\ud788 implement(\uc0c1\uc18d)\ud55c\ub2e4\uba74, \ubcc4 \uc218\uace0\ub85c\uc6c0 \uc5c6\uc774 \ucf54\ub4dc\ub97c \uc791\uc131\ud560 \uc218 \uc788\ub2e4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uad34\ubb3c\uc744 \ud558\ub098 \ub9cc\ub4e0\ub2e4\uace0 \ud558\uc790. \uc774\ub3d9\ub3c4 \uac00\ub2a5\ud558\uace0,\uc2a4\uc2a4\ub85c \ud68c\uc804\ub3c4 \ud558\uace0, \ubab8\uc9d1\ub3c4 \ubd88\ub9b4 \uc218 \uc788\ub294 \ubb34\uc2dc\ubb34\uc2dc\ud55c \uad34\ubb3c \ub9d0\uc774\ub2e4&#8230;..<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public class Monster implements Rotatable, Moveable, Resizable {\n  \/\/\uad6c\ud604\ubd80\ub294 \uc0dd\ub7b5\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub807\uac8c \uad6c\ud604\ud558\uba74, <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Rotatable.rotateBy()<\/li><li>Moveable.moveHorizontally(), Moveable.moveVertically()<\/li><li>Resizable.setRelativeSize()<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \ub124\uac1c\uc758 \ub3d9\uc791\uc744 \uad34\ubb3c \ucf54\ub4dc\uc758 \uad6c\ud604 \uc5c6\uc774\ub3c4 \uc0c1\uc18d\ubc1b\uc544 \uadf8\ub300\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uadf8\ub7fc \uc774\ubc88\uc5d4 \ud0dc\uc591\uc744 \ub9cc\ub4e0\ub2e4\uace0 \ud558\uc790. \ud68c\uc804\ub3c4 \ud558\uace0 \uc6c0\uc9c1\uc77c\uc218\ub294 \uc788\uc9c0\ub9cc, \ubab8\uc9d1\uc744 \ud0a4\uc6b8 \uc218\ub294 \uc5c6\ub294 \ucee4\ub2e4\ub780 \ud0dc\uc591&#8230;.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public class Sun implements Rotatable, Moveable {\n  \/\/\uad6c\ud604\ubd80\ub294 \uc0dd\ub7b5\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ub9c8\ucc2c\uac00\uc9c0\ub85c, \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub85c \uc0dd\uc131\ub41c \uba54\uc18c\ub4dc\ub4e4\uc740 \uad73\uc774 \ud074\ub798\uc2a4\uc5d0\uc11c \uad6c\ud604\ud558\uc9c0 \uc54a\uc544\ub3c4 \ub3d9\uc791\uc744 \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4(\uc544,\ubb3c\ub860 \uc624\ubc84\ub77c\uc774\ub529\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218\ub294 \uc788\ub2e4.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub3d9\uc791 \uc0c1\uc18d\uc744 \ubcf4\uba74\uc11c \uc0dd\uac01\ud560 \uc218 \uc788\ub294 \ub610 \ub2e4\ub978 \uc7a5\uc810\uc73c\ub85c\ub294, \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc0dd\uae40\uc73c\ub85c\uc368, \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uae30\uc874 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \uace0\ub3c4\ud654\ud558\uc5ec \ub85c\uc9c1\uc744 \uac1c\uc120\uc2dc\ud0a4\uba74, (\uc624\ubc84\ub77c\uc774\ub529 \ud558\uc9c0 \uc54a\uc740) \ud558\uc704 \ud074\ub798\uc2a4\uc5d0 \uc790\ub3d9\uc73c\ub85c \uc801\uc6a9\uc774 \ub41c\ub2e4\ub294 \uac83\uc774\ub2e4. \ubb50&#8230;\ubb3c\ub860 \ub2e8\uc810\uc774 \ub420 \uc218\ub3c4 \uc788\uaca0\uc73c\ub098 \uc77c\ub2e8 \uc798 \ud65c\uc6a9\ud55c\ub2e4\uba74 \uc5bb\uc744 \uc218 \uc788\ub294\uac8c \ud074 \uac83 \uac19\uae34 \ud568&#8230;<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\uc5b4?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub2e4\uc911 \uc0c1\uc18d\uc774 \uac00\ub2a5\ud558\ub2e4&#8230;&#8230; C++\uacf5\ubd80\ud560\ub54c \ub9ce\uc774 \ubd24\ub358 \ud328\ud134\uc774\ub2e4&#8230;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8216;\uac19\uc740 \uba54\uc18c\ub4dc \uc2dc\uadf8\ub2c8\uccd0(\uba54\uc18c\ub4dc\uba85 &amp; argument list)\ub97c \uac16\ub294 \uc11c\ub85c \ub2e4\ub978 \ub450\uac1c\uc758 \uba54\uc18c\ub4dc\ub97c \ud558\ub098\uc758 \ud074\ub798\uc2a4\uac00 \uc0c1\uc18d\ubc1b\ub294\ub2e4\uba74?&#8217; \uc5d0 \ub300\ud55c \ubb38\uc81c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(\ucca8 \ub4e3\ub294\ub370 &#8216;\ub2e4\uc774\uc544\ubaac\ub4dc \ubb38\uc81c&#8217;\ub77c\uace0 \ud55c\ub2e4. \ub2e4\uc774\uc5b4\uadf8\ub7a8\uc73c\ub85c \uadf8\ub9ac\uba74 \ub2e4\uc774\uc544\ubaac\ub4dc \ubaa8\uc591\uc73c\ub85c \ub098\uc640\uc11c \uadf8\ub7ec\ub294\ub4ef)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc5d0 \ub300\ud574 \uc790\ubc148\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 \uc81c\uacf5\ud55c\ub2e4\uace0 \ud55c\ub2e4.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\ud074\ub798\uc2a4\uac00 \ud56d\uc0c1 \uc774\uae34\ub2e4. \uac19\uc740 \uba54\uc18c\ub4dc \uc2dc\uadf8\ub2c8\uccd0\ub97c \uac00\uc9c4 \uc778\ud130\ud398\uc774\uc2a4 A\uc640, \uc0c1\uc704\ud074\ub798\uc2a4 B\ub97c \uc0c1\uc18d\ubc1b\ub294 \ud558\uc704\ud074\ub798\uc2a4 x\uac00 \uc788\ub2e4\uace0 \ud558\uba74, x\ub294 B\uc758 \uba54\uc18c\ub4dc\ub97c \uc6b0\uc120\uc73c\ub85c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud55c\ub2e4.<\/li><li>1\ubc88\uaddc\uce59 \uc774\uc678\uc758 \uc0c1\ud669\uc5d0\uc11c\ub294 \uc11c\ube0c\uc778\ud130\ud398\uc774\uc2a4\uac00 \uc774\uae34\ub2e4. \ud2b9\uc815 \uc778\ud130\ud398\uc774\uc2a4 A\ub97c extends\ud55c B\uac00 \uc788\uace0, \uba54\uc18c\ub4dc n\uc744 A\uc640 B\uac00 \ub458 \ub2e4 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub85c \uad6c\ud604\ud558\uc600\ub2e4\uba74, A\uc640 B\ub97c implement\ud558\ub294 \ud558\uc704 \ud074\ub798\uc2a4 x\ub294, B\uc758 \uba54\uc18c\ub4dc\ub97c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud55c\ub2e4.(B\uac00 A\uc758 \uc11c\ube0c \uc778\ud130\ud398\uc774\uc2a4\uc774\uae30 \ub54c\ubb38\uc5d0)<\/li><li>\uc5ec\uc804\ud788 \uc6b0\uc120\uc21c\uc704\uac00 \uacb0\uc815\ub418\uc9c0 \uc54a\ub294\ub2e4\uba74, \uc0c1\uc18d\ubc1b\ub294 \ud558\uc704\ud074\ub798\uc2a4\uac00 \uba85\uc2dc\uc801\uc73c\ub85c \uc624\ubc84\ub77c\uc774\ub4dc\ud558\uc5ec \ud638\ucd9c\ud574\uc57c \ud568.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\uc0ac\uc2e4 1,2\ubc88\uc740 \uadf8\ub9ac \ud754\ud55c \ucf00\uc774\uc2a4\ub294 \uc544\ub2d0 \uac83 \uac19\uace0&#8230;&#8230; 3\ubc88\uc774 \uc911\uc694\ud558\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uacb0\uad6d &#8216;\uad6c\ud604\/\uc0ac\uc6a9\ud558\ub294 \ud604\uc7a5\uc5d0\uc11c \uba85\uc2dc\uc801\uc73c\ub85c \uc815\ud574\uc8fc\uba74 \ub41c\ub2e4&#8217; \uac00 \uacb0\ub860.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\uc2dc\uadf8\ub2c8\uccd0\uac00 \ucda9\ub3cc\ub098\ub294 \uba54\uc18c\ub4dc \uc0c1\uc18d\uc758 \uba85\uc2dc\uc801\uc778 \ubb38\uc81c \ud574\uacb0<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"479\" height=\"617\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-4.png\" alt=\"\" class=\"wp-image-503\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-4.png 479w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-4-233x300.png 233w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \uacbd\uc6b0\uc5d0\ub294 \uc0c1\uae30 1,2\ubc88 \uc870\uac74\uc744 \ub4e4\uc774\ub300\ub3c4 \uc801\uc6a9\ud560 \uc218 \uc5c6\ub294 \uaddc\uce59\uc774\ub2e4. \uc774\ub584 \ud568\ubd80\ub85c \ucef4\ud30c\uc77c\uc744 \ub54c\ub9ac\uba74<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8216;Error: class C inherits unrelated defaults for hello() from types B and A.&#8221; \ub77c\ub294 \uc5d0\ub7ec\uac00 \ub098\uc628\ub2e4\uace0 \ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub54c \uc0ac\uc6a9\ud558\ub294 \ud0a4\uc6cc\ub4dc\ub294 &#8216;A.super.method()&#8217; \ud615\uc2dd\uc758 \ubb38\ubc95\uc774\ub2e4&#8230;..<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public class C implements A,B {\n  void hello() {\n    B.super.hello() \/\/ B\uc778\ud130\ud398\uc774\uc2a4\uc758 \uba54\uc18c\ub4dc\ub97c \uc0c1\uc18d\ubc1b\uaca0\ub2e4!!!!!\n  }\n}<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"34\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-5.png\" alt=\"\" class=\"wp-image-505\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-5.png 559w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-5-300x18.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><figcaption>\ub124?<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc790, \uadf8\ub7fc \uc774 \uc0c1\ud669\uc740 \uc5b4\ub5bb\uac8c \ub420\uae4c?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"342\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-6.png\" alt=\"\" class=\"wp-image-506\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-6.png 491w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-6-300x209.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><figcaption><br>\uc624&#8230;.\ubb38\uc81c\uc740\ud589\uc778\uac00 \ucc9c\uc7b0\ub370 \u314b\u314b\u314b\u314b\u314b<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\ubc14\ub85c \uc774 \uc0c1\ud669\uc744 &#8216;\ub2e4\uc774\uc544\ubaac\ub4dc \ubb38\uc81c&#8217; \ub77c\uace0 \ud55c\ub2e4. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"218\" src=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-7.png\" alt=\"\" class=\"wp-image-507\" srcset=\"https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-7.png 658w, https:\/\/scrutineer.co.kr\/wordpress\/wp-content\/uploads\/2021\/04\/image-7-300x99.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><figcaption>Diamond!!!<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc5bc\ud54f \ubcf4\uae30\uc5d4 &#8216;\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 A\uc5d0\uc11c\ub9cc \uc815\uc758\ub418\uc5b4\uc788\uc73c\ub2c8 \uadf8\ub0e5 A\uba54\uc18c\ub4dc\uc758 hello()\uac00 \uc2e4\ud589\ub418\ub294\uac70 \uc544\ub0d0?&#8217; \ub77c\uace0 \uc0dd\uac01\ud558\uae30 \uc27d\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud558\uc9c0\ub9cc \uc2e4\uc804\uc740 \ub2e4\ub974\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc704\uc5d0 \uba85\uc2dc\ud574 \ub450\uc5c8\ub358 2\ubc88 \uaddc\uce59\uc744 \uc0c1\uae30\uc2dc\ucf1c\ubcf4\uc790. \ubb34\uc870\uac74 \ud558\uc704 \uc778\ud130\ud398\uc774\uc2a4\uc758 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \uc0c1\uc18d\ubc1b\ub294\ub2e4\uace0 \ud558\uc600\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub530\ub77c\uc11c \uc800 \ucf54\ub4dc\ub97c \uac4d \uc329\uc73c\ub85c \ucef4\ud30c\uc77c \ud558\uba74 \ucef4\ud30c\uc77c \uc5d0\ub7ec\uac00 \ub09c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc800\ub7f4\ub550\uc704\uc5d0\uc11c \ubc30\uc6e0\ub4ef  D\uc5d0\uc11c \uba85\uc2dc\uc801\uc73c\ub85c \ud5c8\ub290 \uc778\ud130\ud398\uc774\uc2a4\uc758 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub97c \uc0ac\uc6a9\ud560 \uc9c0 \uc120\ud0dd\ud574 \uc8fc\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc544\ubb34\ud2bc \uc704\uc758 3\uac00\uc9c0 \uaddc\uce59\uc744 \uaf2d\uaf2d \uba85\uc2ec\ud558\uc790.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ub9c8\uce58\uba70<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\uacf5\uac1c\ub41c \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ucd94\uc0c1\uba54\uc18c\ub4dc\ub97c \ucd94\uac00\ud558\uba74 \ud638\ud658\uc131\uc774 \uae68\uc9c4\ub2e4<\/li><li>\uc790\ubc14 8\ubd80\ud130 \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uba54\uc18c\ub4dc\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc874\uc7ac\ud55c\ub2e4<\/li><li>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub294 \ud0a4\uc6cc\ub4dc\uac00 default \ub85c \uc2dc\uc791\ud558\uba70, \uba54\uc18c\ub4dc body\ub97c \uac00\uc9c8 \uc218 \uc788\ub2e4<\/li><li>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc \ub355\ubd84\uc5d0 \uae68\uc9c0\ub294 \ud638\ud658\uc131\uc744 \uc5b4\ub290\uc815\ub3c4 \ucee4\ubc84\ud560 \uc218 \uc788\ub2e4.<\/li><li>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc0dd\uae40\uc73c\ub85c\uc368 \ub3d9\uc791 \ub2e4\uc911 \uc0c1\uc18d\uc774 \uac00\ub2a5\ud558\ub2e4<\/li><li>\uaddc\uce59 3\uac1c<ul><li>\ud074\ub798\uc2a4\uac00 \ud56d\uc0c1 \uc774\uae34\ub2e4. \uac19\uc740 \uba54\uc18c\ub4dc \uc2dc\uadf8\ub2c8\uccd0\ub97c \uac00\uc9c4 \uc778\ud130\ud398\uc774\uc2a4 A\uc640, \uc0c1\uc704\ud074\ub798\uc2a4 B\ub97c \uc0c1\uc18d\ubc1b\ub294 \ud558\uc704\ud074\ub798\uc2a4 x\uac00 \uc788\ub2e4\uace0 \ud558\uba74, x\ub294 B\uc758 \uba54\uc18c\ub4dc\ub97c \uc6b0\uc120\uc73c\ub85c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud55c\ub2e4.<\/li><li>\uc704 \uaddc\uce59 \uc774\uc678\uc758 \uc0c1\ud669\uc5d0\uc11c\ub294 \uc11c\ube0c\uc778\ud130\ud398\uc774\uc2a4\uac00 \uc774\uae34\ub2e4. \ud2b9\uc815 \uc778\ud130\ud398\uc774\uc2a4 A\ub97c extends\ud55c B\uac00 \uc788\uace0, \uba54\uc18c\ub4dc n\uc744 A\uc640 B\uac00 \ub458 \ub2e4 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub85c \uad6c\ud604\ud558\uc600\ub2e4\uba74, A\uc640 B\ub97c implement\ud558\ub294 \ud558\uc704 \ud074\ub798\uc2a4 x\ub294, B\uc758 \uba54\uc18c\ub4dc\ub97c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud55c\ub2e4.(B\uac00 A\uc758 \uc11c\ube0c \uc778\ud130\ud398\uc774\uc2a4\uc774\uae30 \ub54c\ubb38\uc5d0)<\/li><li>\uc5ec\uc804\ud788 \uc6b0\uc120\uc21c\uc704\uac00 \uacb0\uc815\ub418\uc9c0 \uc54a\ub294\ub2e4\uba74, \uc0c1\uc18d\ubc1b\ub294 \ud558\uc704\ud074\ub798\uc2a4\uac00 \uba85\uc2dc\uc801\uc73c\ub85c \uc624\ubc84\ub77c\uc774\ub4dc\ud558\uc5ec \ud638\ucd9c\ud574\uc57c \ud568.<\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc \ubaa8\ub358 \uc790\ubc14\uc5d0\uc11c \ucd94\uac00\ub41c, \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \uba54\uc18c\ub4dc \ub0b4\uc6a9\uc744 \ub514\ud3f4\ud2b8\ub85c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uac83\uc744 \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\ub77c\uace0 \ud55c\ub2e4. \ubcf4\ud1b5, API \uac1c\ubc1c\uc790\uc640 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ubc1b\uc544\ub2e4 \uc4f0\ub294 \uc11c\ube44\uc2a4 \uac1c\ubc1c\uc790\ub4e4\uc774 \uc870\uc9c1\uc774 \ubd84\ub9ac\ub418\uc5b4\uc11c \uc77c\ud560 \uacbd\uc6b0\uc5d0, API\uac1c\ubc1c\uc790\ub294 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\uace0, \uc11c\ube44\uc2a4 \uac1c\ubc1c\uc790\ub4e4\uc740 \uadf8 \uc778\ud130\ud398\uc774\uc2a4\ub97c implement\ud558\uc5ec \uac1c\ubc1c\uc744 \ud558\uac8c \ub41c\ub2e4. \ub514\ud3f4\ud2b8 \uba54\uc18c\ub4dc\uac00 \uc5c6\ub294 \ub808\uac70\uc2dc \uc790\ubc14\uc5d0\uc11c\uc758 \ubb38\uc81c\ub294 API\uac1c\ubc1c\uc790\uac00 \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ud2b9\uc815 \uba54\uc18c\ub4dc\ub97c \ucd94\uac00\ud558\uace0\uc790 \ud560 \ub54c \ubb38\uc81c\uac00 \uc0dd\uae34\ub2e4. \uc778\ud130\ud398\uc774\uc2a4\uc5d0 &#8230; <a title=\"\ubaa8\ub358 \uc790\ubc14 \uc778 \uc561\uc158 13\uc7a5\" class=\"read-more\" href=\"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/2021\/04\/22\/%eb%aa%a8%eb%8d%98-%ec%9e%90%eb%b0%94-%ec%9d%b8-%ec%95%a1%ec%85%98-13%ec%9e%a5\/\" aria-label=\"Read more about \ubaa8\ub358 \uc790\ubc14 \uc778 \uc561\uc158 13\uc7a5\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-493","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":10,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/493\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scrutineer.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}