{"id":550,"date":"2024-03-09T14:41:24","date_gmt":"2024-03-09T05:41:24","guid":{"rendered":"https:\/\/ha234.rundog.org\/?p=550"},"modified":"2024-03-09T15:55:50","modified_gmt":"2024-03-09T06:55:50","slug":"550","status":"publish","type":"post","link":"https:\/\/ha234.rundog.org\/?p=550","title":{"rendered":"\u8b1b\u7fa9\u30e1\u30e2"},"content":{"rendered":"<p>\u30fbp.255\u300c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u306f\u300d\u304b\u3089<\/p>\n<p>\u63d0\u51fa\u30d5\u30a9\u30ed\u30fc\uff1a\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.250 partial01.cs<\/p>\n<pre>\r\n\u30fbMyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2461\u3092\u3001\u5225\u30d5\u30a1\u30a4\u30eb\uff08partial02.cs\uff09\u3068\u3057\u3066\u30bd\u30fc\u30b9\u5206\u5272\u3057\u3088\u3046<\/pre>\n<p>\u4f5c\u6210\u4f8b\uff1apartial01.cs\uff08\u5206\u5272\u5143\uff09<\/p>\n<pre>\r\n\/\/\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.250 partial01.cs\r\nusing System;\r\npartial class MyClass { \/\/MyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;public int x;\r\n}\r\nclass partial01 { \/\/partial01\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyClass mc = new MyClass();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.x = 10;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.Show();\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p>\u4f5c\u6210\u4f8b\uff1apartial02.cs\uff08\u5206\u5272\u5148\uff09<\/p>\n<pre>\r\n<font color=blue>using System; \/\/\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u308b\r\npartial class MyClass { \/\/MyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;public void Show() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;x = {0}&quot;, x);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/font><\/pre>\n<p><strong>\u7b2c10\u7ae0 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/strong><\/p>\n<p>p.255 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u306f<\/p>\n<pre>\r\n\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5143\u306e\u610f\u5473\u306f\u300c\u7570\u306a\u308b\u8981\u7d20\u3092\u95a2\u9023\u4ed8\u3051\u308b\u4ed5\u7d44\u307f\u300d\u300c\u63a5\u5408\u9762\u300d\r\n\u30fbC#\u3067\u306f\u300c\u7d99\u627f\u95a2\u4fc2\u306e\u306a\u3044\u30af\u30e9\u30b9\u3092\u95a2\u9023\u4ed8\u3051\u3089\u308c\u308b\u4ed5\u7d44\u307f\u300d\r\n\u30fb\u4f8b\u3048\u3070\u3001\u753b\u9762\u4e0a\u306b\u30c9\u30e9\u30b4\u30f3\u3068\u6226\u95d8\u6a5f\u304c\u98db\u3073\u4ea4\u3046\u30b2\u30fc\u30e0\u306b\u304a\u3044\u3066\u3001\u30c9\u30e9\u30b4\u30f3\u30af\u30e9\u30b9\u3068\u6226\u95d8\u6a5f\u30af\u30e9\u30b9\u304c\u7d99\u627f\u95a2\u4fc2\u306b\u306a\u308b\u3053\u3068\u306f\u8003\u3048\u3065\u3089\u3044\u3002\r\n\u3000\u3057\u304b\u3057\u3001\u53cc\u65b9\u306e\u30af\u30e9\u30b9\u304c\u300c\u98db\u884c\u4f53\u300d\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3066\u3070(\u5b9f\u88c5\u3059\u308c\u3070)\u3001\u98db\u884c\u4f53\u306b\u542b\u307e\u308c\u308b\u3082\u306e\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u6271\u3048\u308b\r\n\u30fb\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u306b\u57fa\u672c\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u5f62\u306b\u4f3c\u305f\u66f8\u5f0f\u3067\u3001\u30af\u30e9\u30b9\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3067\u304d\u308b<\/pre>\n<p>p.255 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5ba3\u8a00<\/p>\n<pre>\r\n\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u62bd\u8c61\u30af\u30e9\u30b9\u306b\u4f3c\u305f\u5f62\u3067\u5b9a\u7fa9\u3057\u3001\u30af\u30e9\u30b9\u3092\u5fb9\u5e95\u7684\u306b\u62bd\u8c61\u5316\u3057\u305f\u3082\u306e\u306b\u306a\u308b\r\n\u30fb\u5177\u4f53\u7684\u306b\u306f\u3001\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3001\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u307f\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\r\n\u30fb\u62bd\u8c61\u30af\u30e9\u30b9\u3068\u306f\u7570\u306a\u308a\u3001\uff11\u3064\u306e\u30af\u30e9\u30b9\u3067\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3067\u304d\u308b\uff08\u30af\u30e9\u30b9\u306e\u7d99\u627f\u306f\uff11\u3064\u306e\u307f\uff09\r\n\u30fb\u3053\u308c\u306f\u4f8b\u3048\u3070\u300c\u98db\u884c\u4f53\u3067\u3082\u3042\u308a\u3001\u8d70\u884c\u4f53\u3067\u3082\u3042\u308b\u30de\u30b7\u30f3\u300d\u306e\u5834\u5408\r\n\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a interface \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u540d {\u2026}\r\n\u30fb\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b \u30e1\u30bd\u30c3\u30c9\u540d(\u5f15\u6570\u30ea\u30b9\u30c8);\r\n\u30fb\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b \u30d7\u30ed\u30d1\u30c6\u30a3\u540d { get; set; } \u203bget\u3068set\u306e\u3069\u3061\u3089\u304b\u306f\u7701\u7565\u53ef\r\n\u30fb\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b this(\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u578b \u30a4\u30f3\u30c7\u30c3\u30af\u30b9);\r\n\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u4f8b\uff1a interface Flyable { string HowToFly(); } \/\/\u98db\u884c\u4f53\u3092\u793a\u3059\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/pre>\n<p>p.256 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5<\/p>\n<pre>\r\n\u30fb\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3068\u540c\u3058\u66f8\u5f0f\u3067\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5\u304c\u53ef\u80fd\r\n\u30fb\u4f8b\uff1a class Dragon : Flyable {\u2026}\r\n\u30fb\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3068\u306f\u7570\u306a\u308a\u3001\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5\u304c\u53ef\u80fd\r\n\u30fb\u4f8b\uff1a class Dragon : Flyable, Swimable {\u2026}\r\n\u30fb\u62bd\u8c61\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3068\u540c\u69d8\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u3067\u306f\u62bd\u8c61\u30e1\u30f3\u30d0\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u306b\u3088\u308b\u5177\u8c61(\u5177\u4f53\u5316)\u304c\u6c42\u3081\u3089\u308c\u308b\r\n\u30fb\u3053\u306e\u6642\u3001override\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u4e0d\u8981\u3060\u304c\u3001public\u30e1\u30bd\u30c3\u30c9\u306b\u3059\u308b\u3053\u3068\r\n\u30fb\u4f8b\uff1a class Dragon : Flyable { public string HowToFly() { return \"\u7ffc\u3067\u98db\u3076\"; } }\r\n\u30fb\u30af\u30e9\u30b9\u3092\u5229\u7528\u3059\u308b\u5074\u304b\u3089\u898b\u308b\u3068\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u3067\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u305d\u306e\u30af\u30e9\u30b9\u306e\u6027\u8cea\u3092\u8868\u3059\u3053\u3068\u306b\u306a\u308a\u3001\r\n\u3000\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044<\/pre>\n<p>p.257 interface01.cs<\/p>\n<pre>\r\n\/\/p.257 interface01.cs\r\nusing System;\r\ninterface IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\r\n&nbsp;&nbsp;&nbsp;&nbsp;void show(string str); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\r\n&nbsp;&nbsp;&nbsp;&nbsp;int xprop { get; set; } \/\/\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\r\n&nbsp;&nbsp;&nbsp;&nbsp;int this[int i] { get; set; } \/\/\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\r\n}\r\nclass MyClass : IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\r\n&nbsp;&nbsp;&nbsp;&nbsp;int i; \/\/\u975e\u516c\u958b\u306e\u30c7\u30fc\u30bf\u30e1\u30f3\u30d0 \u203b\u300cprotected\u300d\u306f\u4e0d\u8981\r\n&nbsp;&nbsp;&nbsp;&nbsp;int[] arr = new int[10]; \/\/\u975e\u516c\u958b\u306e\u914d\u5217\r\n&nbsp;&nbsp;&nbsp;&nbsp;public void show(string str) { \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(\u5177\u8c61\u5316)\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(str);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;public int xprop { \/\/\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(\u5177\u8c61\u5316)\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get { return i; } set { i = value; }\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;public int this[int index] { \/\/\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(\u5177\u8c61\u5316)\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get { return arr[index]; } set { arr[index] = value; }\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \r\n}\r\nclass interface01 {\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyClass mc = new MyClass(); \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.show(&quot;Test Interface&quot;); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(set)\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.xprop = 100; \/\/\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(set)\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;mc.xprop = {0}&quot;, mc.xprop); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(get)\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 10; i++) {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc[i] = i * 2; \/\/\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(set)\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 10; i++) {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;mc[{0}] = {1}&quot;, i, mc[i]); \/\/\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9(get)\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p>p.259 1\u3064\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u8907\u6570\u306e\u30af\u30e9\u30b9\u3067\u5b9f\u88c5\u3059\u308b<\/p>\n<pre>\r\n\u30fb\u7d99\u627f\u95a2\u4fc2\u306e\u306a\u3044\u8907\u6570\u306e\u30af\u30e9\u30b9\u3092\u3001\u540c\u3058\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\r\n\u30fb\u540c\u3058\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u3067\u3042\u308c\u3070\u3001\u540c\u3058\u62bd\u8c61\u30e1\u30f3\u30d0\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u3053\u3068\u304c\u30dd\u30a4\u30f3\u30c8<\/pre>\n<p>p.259 interface02.cs<\/p>\n<pre>\r\n\/\/p.259 interface02.cs\r\nusing System;\r\ninterface IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\r\n&nbsp;&nbsp;&nbsp;&nbsp;void show(string str); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\r\n}\r\nclass MyClass : IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;public void show(string s) { \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(s);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}\r\nclass YourClass : IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;public void show(string x) { \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;{0}\u304c\u5165\u529b\u3055\u308c\u307e\u3057\u305f&quot;, x);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}\r\nclass interface02 {\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyClass mc = new MyClass();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YourClass yc = new YourClass();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.show(&quot;abc&quot;); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2460\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yc.show(&quot;abc&quot;); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2461\u3092\u547c\u3076\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p>p.260\uff08\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\uff09<\/p>\n<pre>\r\n\u30fb\u62bd\u8c61\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u751f\u6210\u3067\u304d\u306a\u3044\u306e\u3068\u540c\u69d8\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u751f\u6210\u3067\u304d\u306a\u3044\r\n\u30fb\u62bd\u8c61\u30af\u30e9\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u304c\u5b9a\u7fa9\u3067\u304d\u308b\u306e\u3068\u3068\u540c\u69d8\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u308b\r\n\u30fb\u62bd\u8c61\u30af\u30e9\u30b9A\u3092\u7d99\u627f\u3059\u308b\u6d3e\u751f\u30af\u30e9\u30b9B\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001A\u3092\u578b\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\r\n\u30fb\u540c\u69d8\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9C\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9D\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001C\u3092\u578b\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\r\n\u30fb\u4f8b\uff1a \u98db\u3079\u308b\u3082\u306e\u3067\u3042\u308b\u30c9\u30e9\u30b4\u30f3\u306e\u300c\u30f4\u30a7\u30eb\u30c9\u30e9\u300d\u306f\u3001\u98db\u3079\u308b\u3082\u306e\u306e\u300c\u30f4\u30a7\u30eb\u30c9\u30e9\u300d\u3067\u3042\u308b\r\n\u3000inteface Flyable {}\r\n\u3000class Dragon : Flyable {}\r\n\u3000class Test { void Play() { Dragon Veldra = new Dragon(); Flyable flyone = Veldra; }\r\n\u30fb\u306a\u304a\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u914d\u5217\u3082\u5b9a\u7fa9\u3067\u304d\u3001\u8981\u7d20\u3068\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u683c\u7d0d\u3067\u304d\u308b\r\n\u30fb\u4f8b\uff1a \u98db\u3079\u308b\u3082\u306e\u3067\u3042\u308b\u30c9\u30e9\u30b4\u30f3\u306e\u300c\u30f4\u30a7\u30eb\u30c9\u30e9\u300d\u306f\u3001\u98db\u3079\u308b\u3082\u306e\u914d\u5217\u306e[0]\u3067\u3042\u308b<\/pre>\n<p>p.261 interface03.cs<\/p>\n<pre>\r\n\/\/p.261 interface03.cs\r\nusing System;\r\ninterface IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\r\n&nbsp;&nbsp;&nbsp;&nbsp;int calc(int x, int y); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\r\n}\r\nclass Plus : IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;public int calc(int a, int b) { \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2460\u300c\u8a08\u7b97\u305b\u3088\u300d\u306f\u52a0\u7b97\u3068\u3059\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return a + b;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}\r\nclass Minus : IMyInterface { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;public int calc(int a, int b) { \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2461\u300c\u8a08\u7b97\u305b\u3088\u300d\u306f\u6e1b\u7b97\u3068\u3059\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return a - b;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}\r\nclass interface03 {\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IMyInterface im; \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Plus p = new Plus();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Minus m = new Minus();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im = p; \/\/Plus\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u306b\u4ee3\u5165\u53ef\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;im.calc = {0}&quot;, im.calc(3, 5)); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3068\u4fdd\u8a3c\u3055\u308c\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im = m; \/\/Minus\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u306b\u4ee3\u5165\u53ef\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;im.calc = {0}&quot;, im.calc(3, 5)); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3068\u4fdd\u8a3c\u3055\u308c\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p>\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.261 interface03.cs<\/p>\n<pre>\r\n\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u3092\u4e0b\u8a18\u306b\u5909\u66f4\r\n&nbsp;&nbsp;interface Flyable { string HowToFly(); } \/\/\u98db\u884c\u4f53\u3092\u793a\u3059\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\r\n\u30fb\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3092\u4e0b\u8a18\u306b\u5909\u66f4\r\n&nbsp;&nbsp;class Dragon : Flyable { public string HowToFly() { return &quot;\u8155\u529b\u3067\u98db\u3076&quot;; } }\r\n&nbsp;&nbsp;class F16 : Flyable { public string HowToFly() { return &quot;\u30b8\u30a7\u30c3\u30c8\u3067\u98db\u3076&quot;; } }\r\n\u30fb\u591a\u614b\u6027\u304c\u767a\u63ee\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3088\u3046<\/pre>\n<p>\u4f5c\u6210\u4f8b<\/p>\n<pre>\r\n\/\/\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.261 interface03.cs\r\nusing System;<font color=blue>\r\ninterface Flyable { string HowToFly(); } \/\/\u98db\u884c\u4f53\u3092\u793a\u3059\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\r\nclass Dragon : Flyable { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;public string HowToFly() { return &quot;\u8155\u529b\u3067\u98db\u3076&quot;; } \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2460\r\n}\r\nclass F16 : Flyable { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;public string HowToFly() { return &quot;\u30b8\u30a7\u30c3\u30c8\u3067\u98db\u3076&quot;; } \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2461\r\n}<\/font>\r\nclass interface03 {\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {<font color=blue>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flyable flyer; \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dragon Veldra = new Dragon();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F16 Blue = new F16();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flyer = Veldra; \/\/Dragon\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u306b\u4ee3\u5165\u53ef\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;flyer.HowToFly = {0}&quot;, flyer.HowToFly()); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3068\u4fdd\u8a3c\u3055\u308c\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flyer = Blue; \/\/F16\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u53c2\u7167\u5909\u6570\u306b\u4ee3\u5165\u53ef\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;flyer.HowToFly = {0}&quot;, flyer.HowToFly()); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3068\u4fdd\u8a3c\u3055\u308c\u308b<\/font>\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p>\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.261 interface03.cs \u3064\u3065\u304d<\/p>\n<pre>\r\n\u30fbFlyable\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u578b\u306e\u914d\u5217\u306b\u683c\u7d0d\u3059\u308b\u3088\u3046\u306b\u3057\u3088\u3046<\/pre>\n<p>\u4f5c\u6210\u4f8b<\/p>\n<pre>\r\n\/\/\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.261 interface03.cs\r\nusing System;\r\ninterface Flyable { string HowToFly(); } \/\/\u98db\u884c\u4f53\u3092\u793a\u3059\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\r\nclass Dragon : Flyable { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2460\r\n&nbsp;&nbsp;&nbsp;&nbsp;public string HowToFly() { return &quot;\u8155\u529b\u3067\u98db\u3076&quot;; } \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2460\r\n}\r\nclass F16 : Flyable { \/\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u2461\r\n&nbsp;&nbsp;&nbsp;&nbsp;public string HowToFly() { return &quot;\u30b8\u30a7\u30c3\u30c8\u3067\u98db\u3076&quot;; } \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u2461\r\n}\r\nclass interface03 {\r\n&nbsp;&nbsp;&nbsp;&nbsp;public static void Main() {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dragon Veldra = new Dragon();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F16 Blue = new F16();<font color=blue>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flyable[] flyers = { Veldra, Blue }; \/\/\u4e0a\u8a18\u3092\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u578b\u3068\u3059\u308b\u914d\u5217\u306b\u683c\u7d0d\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach (var w in flyers) { \/\/\u914d\u5217\u306e\u5168\u8981\u7d20\u306b\u3064\u3044\u3066\u7e70\u8fd4\u3059\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(w.HowToFly()); \/\/\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u304c\u3042\u308b\u3068\u4fdd\u8a3c\u3055\u308c\u308b\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/font>\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30fbp.255\u300c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u306f\u300d\u304b\u3089 \u63d0\u51fa\u30d5\u30a9\u30ed\u30fc\uff1a\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.250 partial01.cs \u30fbMyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2461\u3092\u3001\u5225\u30d5\u30a1\u30a4\u30eb\uff08partial02.cs\uff09\u3068\u3057\u3066\u30bd\u30fc\u30b9\u5206\u5272\u3057\u3088\u3046 \u4f5c\u6210\u4f8b\uff1apartial01.cs\uff08\u5206\u5272\u5143\uff09 \/\/\u30a2\u30ec\u30f3\u30b8\u6f14\u7fd2\uff1ap.250 partial01.cs using System; partial class MyClass { \/\/MyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2460 &nbsp;&nbsp;&nbsp;&nbsp;public int x; } class partial01 { \/\/partial01\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9 &nbsp;&nbsp;&nbsp;&nbsp;public static void Main() { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyClass mc = new MyClass(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.x = 10; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mc.Show(); &nbsp;&nbsp;&nbsp;&nbsp;} } \u4f5c\u6210\u4f8b\uff1apartial02.cs\uff08\u5206\u5272\u5148\uff09 using System; \/\/\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u308b partial class MyClass { \/\/MyClass\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u2461 &nbsp;&nbsp;&nbsp;&nbsp;public void Show() { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&quot;x = {0}&quot;, x); &nbsp;&nbsp;&nbsp;&nbsp;} } \u7b2c10\u7ae0 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 p.255 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u306f \u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5143\u306e\u610f\u5473\u306f\u300c\u7570\u306a\u308b\u8981\u7d20\u3092\u95a2\u9023\u4ed8\u3051\u308b\u4ed5\u7d44\u307f\u300d\u300c\u63a5\u5408\u9762\u300d \u30fbC#\u3067\u306f\u300c\u7d99\u627f\u95a2\u4fc2\u306e\u306a\u3044\u30af\u30e9\u30b9\u3092\u95a2\u9023\u4ed8\u3051\u3089\u308c\u308b\u4ed5\u7d44\u307f\u300d \u30fb\u4f8b\u3048\u3070\u3001\u753b\u9762\u4e0a\u306b\u30c9\u30e9\u30b4\u30f3\u3068\u6226\u95d8\u6a5f\u304c\u98db\u3073\u4ea4\u3046\u30b2\u30fc\u30e0\u306b\u304a\u3044\u3066\u3001\u30c9\u30e9\u30b4\u30f3\u30af\u30e9\u30b9\u3068\u6226\u95d8\u6a5f\u30af\u30e9\u30b9\u304c\u7d99\u627f\u95a2\u4fc2\u306b\u306a\u308b\u3053\u3068\u306f\u8003\u3048\u3065\u3089\u3044\u3002 \u3000\u3057\u304b\u3057\u3001\u53cc\u65b9\u306e\u30af\u30e9\u30b9\u304c\u300c\u98db\u884c\u4f53\u300d\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3066\u3070(\u5b9f\u88c5\u3059\u308c\u3070)\u3001\u98db\u884c\u4f53\u306b\u542b\u307e\u308c\u308b\u3082\u306e\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u6271\u3048\u308b \u30fb\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u306b\u57fa\u672c\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u5f62\u306b\u4f3c\u305f\u66f8\u5f0f\u3067\u3001\u30af\u30e9\u30b9\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3067\u304d\u308b p.255 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5ba3\u8a00 \u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u62bd\u8c61\u30af\u30e9\u30b9\u306b\u4f3c\u305f\u5f62\u3067\u5b9a\u7fa9\u3057\u3001\u30af\u30e9\u30b9\u3092\u5fb9\u5e95\u7684\u306b\u62bd\u8c61\u5316\u3057\u305f\u3082\u306e\u306b\u306a\u308b \u30fb\u5177\u4f53\u7684\u306b\u306f\u3001\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3001\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u307f\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 \u30fb\u62bd\u8c61\u30af\u30e9\u30b9\u3068\u306f\u7570\u306a\u308a\u3001\uff11\u3064\u306e\u30af\u30e9\u30b9\u3067\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3067\u304d\u308b\uff08\u30af\u30e9\u30b9\u306e\u7d99\u627f\u306f\uff11\u3064\u306e\u307f\uff09 \u30fb\u3053\u308c\u306f\u4f8b\u3048\u3070\u300c\u98db\u884c\u4f53\u3067\u3082\u3042\u308a\u3001\u8d70\u884c\u4f53\u3067\u3082\u3042\u308b\u30de\u30b7\u30f3\u300d\u306e\u5834\u5408 \u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a interface \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u540d {\u2026} \u30fb\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b \u30e1\u30bd\u30c3\u30c9\u540d(\u5f15\u6570\u30ea\u30b9\u30c8); \u30fb\u62bd\u8c61\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b \u30d7\u30ed\u30d1\u30c6\u30a3\u540d { get; set; } \u203bget\u3068set\u306e\u3069\u3061\u3089\u304b\u306f\u7701\u7565\u53ef \u30fb\u62bd\u8c61\u30a4\u30f3\u30c7\u30af\u30b5\u306e\u5b9a\u7fa9\u66f8\u5f0f\uff1a \u623b\u308a\u5024\u578b this(\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u578b \u30a4\u30f3\u30c7\u30c3\u30af\u30b9); \u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u4f8b\uff1a interface Flyable { string HowToFly(); } \/\/\u98db\u884c\u4f53\u3092\u793a\u3059\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 p.256 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5 \u30fb\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3068\u540c\u3058\u66f8\u5f0f\u3067\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5\u304c\u53ef\u80fd \u30fb\u4f8b\uff1a class Dragon : Flyable {\u2026} \u30fb\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3068\u306f\u7570\u306a\u308a\u3001\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9f\u88c5\u304c\u53ef\u80fd \u30fb\u4f8b\uff1a&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/ha234.rundog.org\/?p=550\">Read the full article<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/full-width.php","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-550","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/posts\/550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=550"}],"version-history":[{"count":11,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/posts\/550\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=\/wp\/v2\/posts\/550\/revisions\/562"}],"wp:attachment":[{"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ha234.rundog.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}