{"id":175,"date":"2024-08-17T10:39:08","date_gmt":"2024-08-17T01:39:08","guid":{"rendered":"https:\/\/techfun.cc\/?p=175"},"modified":"2025-06-10T11:31:50","modified_gmt":"2025-06-10T02:31:50","slug":"java_base_inheritance","status":"publish","type":"post","link":"https:\/\/techfun.cc\/java-base\/java_base_inheritance.html","title":{"rendered":"\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9"},"content":{"rendered":"<h3 class=\"Heading Title Title--m\" id=\"Bookmark-1\"><span class=\"Num\">1.<\/span>\u672c\u7ae0\u3067\u306e\u5b66\u7fd2\u9805\u76ee<\/h3>\n<p>\u672c\u7ae0\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u306a\u6a5f\u80fd\u3067\u3042\u308b\u3001\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u306b\u95a2\u3057\u3066\u5b66\u7fd2\u3057\u307e\u3059\u3002<\/p>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-2\"><span class=\"Num\">2.<\/span>\u672c\u7ae0\u306e\u8b1b\u7fa9<\/h3>\n<p>\u672c\u7ae0\u3067\u5b66\u7fd2\u3059\u308b\u5185\u5bb9\u3092\u52d5\u753b\u3068\u3057\u3066\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\u3002\u6700\u521d\u306b\u4e00\u901a\u308a\u898b\u7d42\u308f\u3063\u305f\u5f8c\u3067\u3001\u5b66\u7fd2\u306b\u5165\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"Video-block\">\n<div class=\"Video-block__title\">\u8b1b\u7fa9:\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9<\/div>\n<div class=\"Video-block__video Youtube\">\n\t\t<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/LCKulDqSe4g?si=rpprJhHQEOEVpjSk&#038;rel=0\"\n\t\t\ttitle=\"YouTube video player\" frameborder=\"0\"\n\t\t\tallow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n\t\t\treferrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\t<\/div>\n<\/div>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-3\"><span class=\"Num\">3.<\/span>\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a00\u8a9e\u306f\u3001\u4f3c\u305f\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3092\u3067\u304d\u308b\u3060\u3051\u4f7f\u3044\u307e\u308f\u305d\u3046\u3068\u3044\u3046\u8003\u3048\u65b9\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e1\u5358\u4f4d\u3067\u3042\u308b\u30af\u30e9\u30b9\u3082\u3001\u540c\u69d8\u306e\u51e6\u7406\u3092\u6301\u3064\u30af\u30e9\u30b9\u3092\u3044\u304f\u3064\u304b\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u4e00\u3064\u306e\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30bd\u30fc\u30b9\u3092\u4f7f\u3044\u56de\u3059\u6280\u8853\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u6280\u8853\u306e\u4e00\u3064\u304c\u3053\u308c\u304b\u3089\u5b66\u7fd2\u3059\u308b<span class=\"Text-highlight\">\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09<\/span>\u3067\u3059\u3002<br \/>\n\u7d99\u627f\u306f\u3001\u65b0\u3057\u304f\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3001\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u4ed6\u306e\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u305d\u306e\u307e\u307e\u53d7\u3051\u7d99\u3050\u3053\u3068\u304c\u3067\u304d\u308b\u624b\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u56f3\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9MySuper\u306b\u30d5\u30a3\u30fc\u30eb\u30c9x\u3068\u30e1\u30bd\u30c3\u30c9getX\u304c\u5b9a\u7fa9\u3057\u3066\u3042\u308b\u3068\u304d\u3001\u3053\u306e\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\u306e\u624b\u6cd5\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u30d5\u30a3\u30fc\u30eb\u30c9x\u3068\u30e1\u30bd\u30c3\u30c9getX\u3092\u30af\u30e9\u30b9MySub\u304c\u305d\u306e\u307e\u307e\u5f15\u304d\u7d99\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30af\u30e9\u30b9MySub\u306f\u3001\u30af\u30e9\u30b9MySuper\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u7279\u306b\u8a18\u8ff0\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u5b9a\u7fa9\u3057\u3066\u3042\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u7d99\u627f\u306e\u5143\u3068\u306a\u308b\u30af\u30e9\u30b9\u3092\u89aa\u30af\u30e9\u30b9\uff08\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\uff09\u3068\u547c\u3073\u3001\u305d\u308c\u3092\u7d99\u627f\u3059\u308b\u30af\u30e9\u30b9\u3092\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<p><a class=\"Ext Image-link\" href=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/06\/inheritance1.png\"><br \/>\n\t<img decoding=\"async\" src=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/06\/inheritance1.png\" alt=\"inheritance1\"><br \/>\n<\/a><\/p>\n<p>\u4ee5\u4e0b\u304c\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u306e\u66f8\u5f0f\u3067\u3059\u3002\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u304d\u306b\u3001\u300cextends\u300d\u3092\u4f7f\u7528\u3057\u3001\u89aa\u30af\u30e9\u30b9\uff08\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\uff09\u3092\u7d99\u627f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"Copy\"><code>public class \u5b50\u30af\u30e9\u30b9 extends \u89aa\u30af\u30e9\u30b9 {\r\n\t\/\/ \uff08\u7701\u7565\uff09\r\n}<\/code><\/pre>\n<p>\u300cMySuper\u300d\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u305f\u300cMySub\u300d\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u3001\u89aa\u30af\u30e9\u30b9\uff08\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\uff09\u306e\u300cMySuper\u300d\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3067\u3059\u3002<\/p>\n<div class=\"Pre-title\">MySuper.java<\/div>\n<pre class=\"Copy\"><code>public class MySuper {\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9x\u306e\u5b9a\u7fa9\r\n\tint x = 10;\r\n\r\n\t\/\/ \u30e1\u30bd\u30c3\u30c9getX\u306e\u5b9a\u7fa9\r\n\tint getX() {\r\n\t\treturn x;\r\n\t}\r\n}<\/code><\/pre>\n<p>\u6b21\u306b\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u306e\u300cMySub\u300d\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3067\u3059\u3002<\/p>\n<div class=\"Pre-title\">MySub.java<\/div>\n<pre class=\"Copy\"><code>\/\/ MySuper\u30af\u30e9\u30b9\u3092\u7d99\u627f\r\npublic class MySub extends MySuper {\r\n\r\n\t\/\/ \u89aa\u30af\u30e9\u30b9\u300cMySuper\u300d\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9x\u3068\u30e1\u30bd\u30c3\u30c9getX\u306f\u3001\r\n\t\/\/ \u8a18\u8ff0\u304c\u306a\u304f\u3066\u3082\u3001\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\r\n\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9y\u306e\u5b9a\u7fa9\r\n\tint y = 20;\r\n\r\n\t\/\/ \u30e1\u30bd\u30c3\u30c9getY\u306e\u5b9a\u7fa9\r\n\tint getY(){\r\n\t\t\treturn y;\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u3067\u3042\u308b\u300cMySub\u300d\u306f\u3001\u300cMySuper\u300d\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30e1\u30f3\u30d0\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\uff09\u3092\u4f55\u3082\u8a18\u8ff0\u3057\u306a\u304f\u3066\u3082\u3001\u89aa\u30af\u30e9\u30b9\uff08\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\uff09\u3067\u3042\u308b\u300cMySuper\u300d\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4e0a\u8a18\u306e\u56f3\u306e\u3088\u3046\u306b\u3001\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u306f\u3001\u81ea\u5206\u72ec\u81ea\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u7d99\u627f\u3057\u305f\u30e1\u30f3\u30d0\u3068\u8ffd\u52a0\u3057\u305f\u30e1\u30f3\u30d0\u306e\u4e21\u65b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u5f15\u304d\u7d99\u304c\u308c\u307e\u305b\u3093\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u5b50\u30af\u30e9\u30b9\uff08\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u300cMySub\u300d\u306b\u3001\u5229\u7528\u3059\u308b\u30af\u30e9\u30b9\u300cMyClass\u300d\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3001\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7d99\u627f\u3057\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3082\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u540c\u69d8\u306b\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">MyClass.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/ MySub\u30af\u30e9\u30b9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\r\n\t\tMySub mysub = new MySub();\r\n\r\n\t\t\/\/ MySub\u30af\u30e9\u30b9\u304c\u7d99\u627f\u3057\u305f\u30d5\u30a3\u30fc\u30eb\u30c9x\u306b\u30a2\u30af\u30bb\u30b9\r\n\t\tSystem.out.println(mysub.x);\r\n\r\n\t\t\/\/ MySub\u30af\u30e9\u30b9\u304c\u7d99\u627f\u3057\u305f\u30e1\u30bd\u30c3\u30c9getX\u306b\u30a2\u30af\u30bb\u30b9\r\n\t\tSystem.out.println(mysub.getX());\r\n\r\n\t\t\/\/ MySub\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3057\u305f\u30d5\u30a3\u30fc\u30eb\u30c9y\u306b\u30a2\u30af\u30bb\u30b9\r\n\t\tSystem.out.println(mysub.y);\r\n\r\n\t\t\/\/  MySub\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3057\u305f\u30e1\u30bd\u30c3\u30c9getY\u306b\u30a2\u30af\u30bb\u30b9\r\n\t\tSystem.out.println(mysub.getY());\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>10\r\n10\r\n20\r\n20<\/code><\/pre>\n<p>\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u91cd\u8907\u3059\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u8a18\u8ff0\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u52b9\u7387\u304c\u826f\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4f55\u304b\u4fee\u6b63\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u3001\u89aa\u30af\u30e9\u30b9\u306e\u307f\u3092\u4fee\u6b63\u3059\u308b\u3060\u3051\u3067\u6e08\u3080\u306a\u3069\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u304c\u5411\u4e0a\u3057\u305f\u308a\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Information-block\">\n<div class=\"Information-heading\">\n<div class=\"Google-icon Google-icon--information\"><\/div>\n<div class=\"Information-heading__child\">Information<\/div>\n<\/p><\/div>\n<div class=\"Heading Title Title--xs\">Java\u306e\u7d99\u627f\u306e\u7279\u5fb4<\/div>\n<ol class=\"Base-list Base-list--ol\">\n<li class=\"Base-list__child\">\n\t\t\t\u7d99\u627f\u306f\u3001\u4f55\u4e16\u4ee3\u3067\u3082OK<\/p>\n<div class=\"List-indent\">Java\u306f\u3001\u300cMySub\u300d\u30af\u30e9\u30b9\u306e\u5b50\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001\u300cMySubSub\u300d\u30af\u30e9\u30b9\u3092\u3001\u305d\u306e\u307e\u305f\u5b50\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001\u300cMySubSubSub\u300d\u30af\u30e9\u30b9\u3092\u30fb\u30fb\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u7d99\u627f\u3092\u4f55\u4e16\u4ee3\u3082\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\t\t\t\u305d\u306e\u5834\u5408\u3001\u9014\u4e2d\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5ef6\u3005\u3068\u5f15\u304d\u7d99\u304c\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\t\t\t\u3057\u304b\u3057\u3001\u5b9f\u969b\u306e\u30af\u30e9\u30b9\u8a2d\u8a08\u3067\u306f\u3001\u7d99\u627f\u3092\u4f55\u5ea6\u3082\u884c\u3046\u3068\u3001\u3069\u3093\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u5f15\u304d\u7d99\u304c\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u308f\u304b\u308a\u306b\u304f\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u3001\u3042\u307e\u308a\u4f55\u4e16\u4ee3\u306b\u3082\u308f\u305f\u3063\u305f\u7d99\u627f\u306f\u30aa\u30b9\u30b9\u30e1\u3067\u304d\u307e\u305b\u3093\u3002<\/div>\n<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\u591a\u91cd\u7d99\u627f\u4e0d\u53ef<\/p>\n<div class=\"List-indent\">\u3082\u3046\u4e00\u3064\u91cd\u8981\u306aJava\u306e\u7d99\u627f\u306e\u7279\u5fb4\u3068\u3057\u3066\u3001Java\u306f\u3001<span class=\"Text-highlight\">\u591a\u91cd\u7d99\u627f\u4e0d\u53ef<\/span>\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<br \/>\n\t\t\tJava\u306f\u3001\u5b50\u30af\u30e9\u30b9\u3092\u8907\u6570\u6301\u3064\u3053\u3068\u306f\u3001\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u89aa\u30af\u30e9\u30b9\u306f\u3001\u4e00\u3064\u3060\u3051\u3068\u3044\u3046\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\t\t\t\u3064\u307e\u308a\u3001\u3042\u308b\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u305f\u3089\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u3002<br \/>\n\t\t\t\u3053\u308c\u3082\u3001\u7d99\u627f\u306e\u5834\u5408\u3001\u7d99\u627f\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u5b50\u30af\u30e9\u30b9\u306b\u306f\u3001\u5b9f\u969b\u306b\u8a18\u8ff0\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u591a\u304f\u306e\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3055\u308c\u308b\u3068\u308f\u304b\u308a\u306b\u304f\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u4e00\u3064\u306e\u7406\u7531\u3067\u3059\u3002<\/div>\n<\/li>\n<\/ol>\n<p>\t\u7d99\u627f\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52b9\u7387\u826f\u304f\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4fbf\u5229\u306a\u624b\u6cd5\u3067\u3059\u304c\u3001\u4f7f\u7528\u306b\u306f\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u5927\u5909\u308f\u304b\u308a\u306b\u304f\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002\n<\/p><\/div>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-4\"><span class=\"Num\">4.<\/span>\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u306e\u89aa\u30af\u30e9\u30b9<\/h3>\n<p>java.lang.Object\u30af\u30e9\u30b9\u306f\u3001\u5168\u3066\u306e\u30af\u30e9\u30b9\u306e\u89aa\u30af\u30e9\u30b9\u3068\u3057\u3066\u4f4d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u898b\u4f55\u3082\u7d99\u627f\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u30af\u30e9\u30b9\u3067\u3082\u3001java.lang.Object\u30af\u30e9\u30b9\u306e\u5b50\u30af\u30e9\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306fJava\u8a00\u8a9e\u306e\u6c7a\u307e\u308a\u3067\u300c\u5168\u3066\u306e\u30af\u30e9\u30b9\u306fjava.lang.Object\u304c\u81ea\u52d5\u7684\u306b\u7d99\u627f\u3055\u308c\u308b\u300d\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e2\u3064\u306e\u30af\u30e9\u30b9\u306f\u540c\u3058\u3088\u3046\u306a\u610f\u5473\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"Copy\"><code>public class MyClass {\r\n}\r\n\r\npublic class MyClass extends java.lang.Object {\r\n}<\/code><\/pre>\n<p>\u305f\u3060\u3057\u3053\u306e2\u3064\u306e\u5ba3\u8a00\u306f\u3001\u5b8c\u5168\u306b\u540c\u3058\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\nJava\u8a00\u8a9e\u306f\u3001\u65e2\u306b\u8aac\u660e\u3057\u305f\u3068\u304a\u308a\u8907\u6570\u306e\u89aa\u30af\u30e9\u30b9\u3092\u4fdd\u6301\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4e00\u5ea6extends\u3067Object\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u6700\u521d\u306eMyClass\u3067\u306f\u3001extends\u3092\u8ffd\u52a0\u3057\u3066\u4ed6\u306e\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3067\u304d\u307e\u3059\u304c\u3001java.lang.Object\u3092\u660e\u793a\u7684\u306bextends\u3057\u305f\u5834\u5408\u306f\u3001\u5225\u306e\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3092\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3057\u304b\u3057\u3001\u3069\u3061\u3089\u3082java.lang.Object\u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u540c\u3058\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5168\u3066\u306e\u30af\u30e9\u30b9\u306f\u3001Object\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3088\u304f\u4f7f\u3046\u30e1\u30bd\u30c3\u30c9\u306b\u3001toString\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6587\u5b57\u5217\u8868\u73fe\u3092\u623b\u3059\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"Pre-title\">MyClass.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass {\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">UseClass.java<\/div>\n<pre class=\"Copy\"><code>public class UseClass {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tMyClass myclass = new MyClass();\r\n\t\tString s = myclass.toString();\r\n\t}\r\n}<\/code><\/pre>\n<p>MyClass\u306b\u306f\u4f55\u3082\u30e1\u30bd\u30c3\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306bjava.lang.Object\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308btoString\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001MyClass\u304c\u81ea\u52d5\u7684\u306bjava.lang.Object\u306e\u5b50\u30af\u30e9\u30b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-5\"><span class=\"Num\">5.<\/span>this \u3068 super<\/h3>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001this\u3084super\u3068\u3044\u3046\u7279\u6b8a\u306a\u53c2\u7167\u578b\u5909\u6570\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306ethis\u3084super\u3092\u4f7f\u3044\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u3053\u308c\u304b\u3089\u3001\u3053\u308c\u3089\u306e\u4f7f\u3044\u65b9\u3092\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 class=\"Heading Title Title--s\" id=\"Bookmark-5-1\"><span class=\"Num\">5.1.<\/span>this<\/h4>\n<p>\u300cthis\u300d\u306f\u81ea\u5206\u81ea\u8eab\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u53c2\u7167\u5024\u3092\u5909\u6570\u3068\u3057\u3066\u6301\u3063\u3066\u3044\u307e\u3059\u3002this\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u300cthis\u300d\u5909\u6570\u306f\u3001this\u5909\u6570\u304c\u51fa\u73fe\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u81ea\u8eab\u3092\u6307\u3059\u7279\u5225\u306a\u5909\u6570\u3067\u3001\u3088\u304f\u5229\u7528\u3059\u308b\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u5185\u90e8\u3067\u5b9a\u7fa9\u3057\u305f\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u540d\u3068\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u81ea\u8eab\u304c\u5c5e\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u540d\u304c\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u3068\u304d\u3067\u3059\u3002<br \/>\n\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u4f7f\u7528\u3059\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u3068\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u304c\u540c\u3058\u540d\u524d\u306e\u5834\u5408\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u540d\u304c\u512a\u5148\u3057\u3066\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306b\u3001\u300cthis\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3067\u3059\u3002\u30ed\u30fc\u30ab\u30eb\u5909\u6570x\u3068\u30d5\u30a3\u30fc\u30eb\u30c9x\u306f\u3001\u5909\u6570\u540d\u304c\u540c\u3058\u3067\u3042\u308b\u305f\u3081\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u304c\u5c5e\u3057\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u300cthis.x\u300d\u3068\u3044\u3046\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3001\u300c\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d5\u30a3\u30fc\u30eb\u30c9x\u300d\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u793a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">MyClass2.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass2 {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/ MyThis2\u30af\u30e9\u30b9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\r\n\t\tMyThis2 mythis = new MyThis2();\r\n\r\n\t\t\/\/ MyThis2\u30af\u30e9\u30b9\u306eprint\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\r\n\t\tmythis.print(100);\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyThis2.java<\/div>\n<pre class=\"Copy\"><code>public class MyThis2 {\r\n\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9x\u3092\u5b9a\u7fa9\r\n\tint x = 1;\r\n\r\n\t\/\/ \u30ed\u30fc\u30ab\u30eb\u5909\u6570x\u3092\u5b9a\u7fa9\r\n\tvoid print(int x) {\r\n\t\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9x\u306e\u50241\u3092\u51fa\u529b\r\n\t\tSystem.out.println(this.x);\r\n\r\n\t\t\/\/ \u30ed\u30fc\u30ab\u30eb\u5909\u6570x\u306e\u5024100\u3092\u51fa\u529b\r\n\t\tSystem.out.println(x);\r\n\r\n\t\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u50241\u3068\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306e\u5024100\u3092\u52a0\u7b97\u3057\u3001\r\n\t\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u4ee3\u5165\r\n\t\tthis.x = this.x + x;\r\n\r\n\t\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024101\u3092\u51fa\u529b\r\n\t\tSystem.out.println(this.x);\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>1\r\n100\r\n101<\/code><\/pre>\n<h4 class=\"Heading Title Title--s\" id=\"Bookmark-5-2\"><span class=\"Num\">5.2.<\/span>super<\/h4>\n<p>\u300csuper\u300d\u306f\u89aa\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u53c2\u7167\u5024\u3092\u5909\u6570\u3068\u3057\u3066\u6301\u3063\u3066\u3044\u307e\u3059\u3002super\u3082\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u300csuper\u300d\u5909\u6570\u306f\u3001\u89aa\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u660e\u793a\u7684\u306b\u793a\u3059\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u89aa\u30af\u30e9\u30b9\u3068\u5b50\u30af\u30e9\u30b9\u3067\u540c\u3058\u540d\u524d\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u5b50\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u81ea\u8eab\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u512a\u5148\u7684\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5b50\u30af\u30e9\u30b9\u304b\u3089\u3001\u89aa\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u660e\u793a\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u306f\u3001super\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<div class=\"Pre-title\">MySuper1.java<\/div>\n<pre class=\"Copy\"><code>\/\/ \u89aa\u30af\u30e9\u30b9MySuper1\u3092\u5b9a\u7fa9\r\npublic class MySuper1 {\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9x\u3092\u5b9a\u7fa9\r\n\tint x = 100;\r\n\r\n\tvoid print() {\r\n\t\tSystem.out.println(\"super\u306e\" + x);\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MySub1.java<\/div>\n<pre class=\"Copy\"><code>\/\/ \u5b50\u30af\u30e9\u30b9MySub1\u3092\u5b9a\u7fa9\uff1aMySuper1\u3092\u7d99\u627f\r\npublic class MySub1 extends MySuper1 {\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9x\u3092\u5b9a\u7fa9\r\n\tint x = 1;\r\n\r\n\tvoid print() {\r\n\t\t\/\/ \u89aa\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9x\u306e\u5024100\u3092\u51fa\u529b\r\n\t\tSystem.out.println(super.x);\r\n\r\n\t\t\/\/ \u81ea\u8eab\u306e\u30d5\u30a3\u30fc\u30eb\u30c9x\u306e\u50241\u3092\u51fa\u529b\r\n\t\tSystem.out.println(x);\r\n\r\n\t\t\/\/ \u89aa\u30af\u30e9\u30b9\u306eprint\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\r\n\t\tsuper.print();\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyClass3.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass3 {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/ MySub1\u30af\u30e9\u30b9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\r\n\t\tMySub1 mysub = new MySub1();\r\n\r\n\t\t\/\/ MySub1\u30af\u30e9\u30b9\u306eprint\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\r\n\t\tmysub.print();\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>100\r\n1\r\nsuper\u306e100<\/code><\/pre>\n<h4 class=\"Heading Title Title--s\" id=\"Bookmark-5-3\"><span class=\"Num\">5.3.<\/span>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u3073\u51fa\u3057<\/h4>\n<p>this\u30e1\u30bd\u30c3\u30c9\u300cthis()\u300d\u306f\u81ea\u5206\u306e\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u65b9\u6cd5\u3092\u5229\u7528\u3057\u3066\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e2d\u3067\u540c\u3058\u30af\u30e9\u30b9\u306e\u4ed6\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u5f15\u6570\u306e\u5f15\u6e21\u3057\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>super\u30e1\u30bd\u30c3\u30c9\u300csuper()\u300d\u306f\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u65b9\u6cd5\u3092\u5229\u7528\u3057\u3066\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e2d\u3067\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u5f15\u6570\u306e\u5f15\u6e21\u3057\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001<span class=\"Text-highlight\">this\u30e1\u30bd\u30c3\u30c9\u3001super\u30e1\u30bd\u30c3\u30c9\u3068\u3082\u306b\u3001\u4f7f\u3048\u308b\u306e\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e00\u756a\u6700\u521d\u306e\u884c\u3060\u3051<\/span>\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u5834\u6240\u3067\u4f7f\u3046\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>super\u30e1\u30bd\u30c3\u30c9\u306e\u4ed5\u7d44\u307f\u3068\u3057\u3066\u3001\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u751f\u6210\u3055\u308c\u308b\u3068\u3001\u305d\u306e\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3082\u547c\u3073\u51fa\u3055\u308c\u308b\u306e\u3067\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u3073\u51fa\u3057\u304c\u9023\u9396\u7684\u306b\u884c\u306a\u308f\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e2d\u306b\u306f\u6697\u9ed9\u7684\u306bsuper\u30e1\u30bd\u30c3\u30c9\u306e\u300csuper()\u300d\u3068\u3044\u3046\u8a18\u8ff0\u304c\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e00\u756a\u6700\u521d\u306e\u884c\u306b\u81ea\u52d5\u7684\u306b\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u300csuper()\u300d\u3068\u3044\u3046\u51e6\u7406\u306f\u5168\u3066\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u633f\u5165\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u4ee5\u4e0b\u306e2\u3064\u306e\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u5834\u5408\u306e\u307f\u304c\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\n\t\tsuper()\u306e\u8a18\u8ff0\u304c\u7121\u3044\u5834\u5408\n\t<\/li>\n<li class=\"Base-list__child\">\n\t\tthis()\u306e\u8a18\u8ff0\u304c\u7121\u3044\u5834\u5408\n\t<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u660e\u793a\u7684\u306b\u81ea\u5206\u306e\u30af\u30e9\u30b9\u307e\u305f\u306f\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u3073\u51fa\u3057\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306e\u307f\u3001\u300csuper()\u300d\u3068\u3044\u3046\u51e6\u7406\u304c\u81ea\u52d5\u7684\u306b\u633f\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u7d99\u627f\u3057\u305f\u89aa\u30af\u30e9\u30b9\u306b\u5f15\u6570\u3064\u304d\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3057\u304b\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u300csuper()\u300d\u306b\u5bfe\u5fdc\u3059\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u5b58\u5728\u3057\u306a\u3044\u305f\u3081\u3001\u89aa\u30af\u30e9\u30b9\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u660e\u793a\u7684\u306b\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u89aa\u30af\u30e9\u30b9\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3076\u306b\u306f\u3001\u300csuper()\u300d\u306e\u62ec\u5f27\u90e8\u5206\u306b\u5bfe\u5fdc\u3059\u308b\u30c7\u30fc\u30bf\u578b\u306e\u5f15\u6570\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u306e\u3088\u3046\u306b\u660e\u793a\u7684\u306b\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u9023\u9396\u7684\u306a\u547c\u3073\u51fa\u3057\u3092\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">MyTest1.java<\/div>\n<pre class=\"Copy\"><code>public class MyTest1 {\r\n\tMyTest1() {\r\n\t\tSystem.out.println(\"MyTest1\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\");\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyTest2.java<\/div>\n<pre class=\"Copy\"><code>public class MyTest2 extends MyTest1 {\r\n\tMyTest2(int x){\r\n\t\t\/\/ \u6697\u9ed9\u7684\u306bsuper()\u304c\u633f\u5165\u3055\u308c\u3001MyTest1\u306e\u5f15\u6570\u306a\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\r\n\t\t\/\/ super();\r\n\t\tSystem.out.println(\"MyTest2\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\");\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyTest3.java<\/div>\n<pre class=\"Copy\"><code>public class MyTest3 extends MyTest2 {\r\n\tMyTest3() {\r\n\t\t\/\/ MyTest2\u30af\u30e9\u30b9\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u660e\u793a\u7684\u306a\u547c\u3073\u51fa\u3057\r\n\t\t\/\/ MyTest2\u30af\u30e9\u30b9\uff08\u89aa\u30af\u30e9\u30b9\uff09\u306b\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3057\u304b\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u884c\u3092\u8a18\u8ff0\u3057\u306a\u3044\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\r\n\t\tsuper(3);\r\n\r\n\t\tSystem.out.println(\"MyTest3\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\");\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyClass4.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass4 {\r\n\tpublic static void main(String[] args) {\r\n\t\tMyTest3 myTest3 = new MyTest3(); \/\/ \u30af\u30e9\u30b9 MyTest3 \u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>MyTest1\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\r\nMyTest2\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\r\nMyTest3\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u300cthis()\u300d\u3092\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3067\u3059\u3002<br \/>\nthis\u306f\u81ea\u5206\u81ea\u8eab\u306e\u53c2\u7167\u3092\u8868\u3057\u3001\u300cthis()\u300d\u306f\u81ea\u5206\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u305b\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306fmain\u30e1\u30bd\u30c3\u30c9\u3067\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3001MyTest5\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u307f\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e2d\u3067\u306f\u300cthis(3)\u300d\u3092\u4f7f\u3063\u3066\u3001\u3082\u3046\u3072\u3068\u3064\u306e\u5f15\u6570\u3064\u304d\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">MyTest4.java<\/div>\n<pre class=\"Copy\"><code>public class MyTest4 {\r\n\r\n\tvoid myMsg() {\r\n\t\tSystem.out.println(\"MyTest4\u306emyMsg\u30e1\u30bd\u30c3\u30c9\");\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyTest5.java<\/div>\n<pre class=\"Copy\"><code>public class MyTest5 extends MyTest4 {\r\n\tMyTest5() {\r\n\t\tthis(3); \/\/ MyTest5 \u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u3073\u3060\u3057\r\n\t\tsuper.myMsg(); \/\/ MyTest4 \u306e myMsg \u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u3060\u3057\r\n\t\tthis.myMsg(); \/\/ MyTest5 \u306e myMsg \u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u3060\u3057\r\n\t}\r\n\tMyTest5(int x) {\r\n\t\tSystem.out.println(\"MyTest5\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\");\r\n\t}\r\n\tvoid myMsg() {\r\n\t\tSystem.out.println(\"MyTest5\u306emyMsg\u30e1\u30bd\u30c3\u30c9\");\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">MyClass5.java<\/div>\n<pre class=\"Copy\"><code>public class MyClass5 {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/ \u30af\u30e9\u30b9 MyTest5 \u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\r\n\t\tMyTest5 myTest5 = new MyTest5();\r\n\t}\r\n}<\/code><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>MyTest5\u306e\u5f15\u6570\u3064\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\r\nMyTest4\u306emyMsg\u30e1\u30bd\u30c3\u30c9\r\nMyTest5\u306emyMsg\u30e1\u30bd\u30c3\u30c9<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u306f\u30b7\u30b0\u30cd\u30c1\u30e3\u30fc\u306e\u9055\u3046\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u8907\u6570\u5b9a\u7fa9\u3067\u304d\u307e\u3059\uff08\u3053\u306e\u3053\u3068\u3092\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3068\u3044\u3044\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u300c\u30dd\u30ea\u30e2\u30d5\u30a3\u30ba\u30e0\u300d\u306e\u7ae0\u3067\u8aac\u660e\u3057\u307e\u3059\uff09\u3002<\/p>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-6\"><span class=\"Num\">6.<\/span>final\u4fee\u98fe\u5b50<\/h3>\n<p>\u6700\u5f8c\u306b\u3001final\u4fee\u98fe\u5b50\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\nfinal\u4fee\u98fe\u5b50\u306f\u3001\u7d99\u627f\u3055\u308c\u305f\u304f\u306a\u3044\u30af\u30e9\u30b9\u3084\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u524d\u306b\u4ed8\u52a0\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u7d99\u627f\u3092\u3067\u304d\u306a\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u300c\u30dd\u30ea\u30e2\u30d5\u30a3\u30ba\u30e0\u300d\u306e\u7ae0\u3067\u5b66\u7fd2\u3059\u308b\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3082\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u308c\u4ee5\u4e0a\u6a5f\u80fd\u62e1\u5f35\u3084\u5909\u66f4\u304c\u3055\u308c\u305f\u304f\u306a\u3044\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001final\u4fee\u98fe\u5b50\u304c\u3064\u3044\u305f\u30af\u30e9\u30b9\u306f\u3001\u89aa\u30af\u30e9\u30b9\u306b\u306a\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u306e\u3088\u3046\u306b\u3001final\u4fee\u98fe\u5b50\u304c\u4ed8\u52a0\u3055\u308c\u305fMyExtends\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"Copy\"><code>\/\/ final\u4fee\u98fe\u5b50\u3092\u4ed8\u52a0\u3057\u305f\u30af\u30e9\u30b9\r\nfinal public class MyExtends {\r\n}<\/code><\/pre>\n<pre class=\"Copy\"><code>\/\/ final\u4fee\u98fe\u5b50\u3092\u4ed8\u52a0\u3057\u305f\u30af\u30e9\u30b9\u306f\u7d99\u627f\u3067\u304d\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\r\npublic class SubClass extends MyExtends {\r\n}<\/code><\/pre>\n<p>\u89aa\u30af\u30e9\u30b9\u3067final\u4fee\u98fe\u5b50\u304c\u3064\u3044\u305f\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5b50\u30af\u30e9\u30b9\u3067\u540c\u3058\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u307e\u305f\u3001final\u4fee\u98fe\u5b50\u304c\u3064\u3044\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u5b50\u30af\u30e9\u30b9\u3067\u5024\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<div class=\"Pre-title\">MyExtends.java<\/div>\n<pre class=\"Copy\"><code>public class MyExtends {\r\n\t\/\/ final\u30d5\u30a3\u30fc\u30eb\u30c9\r\n\tfinal int x = 1;\r\n\r\n\t\/\/ final \u30e1\u30bd\u30c3\u30c9\r\n\tfinal void myTemp() {\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">SubClass.java<\/div>\n<pre class=\"Copy\"><code>public class SubClass extends MyExtends {\r\n\tvoid change() {\r\n\t\t\/\/ \u89aa\u30af\u30e9\u30b9\u3067 final\u30d5\u30a3\u30fc\u30eb\u30c9\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30a8\u30e9\u30fc\r\n\t\tx = 10;\r\n\t}\r\n\t\/\/ \u89aa\u30af\u30e9\u30b9\u3067 final\u30e1\u30bd\u30c3\u30c9\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30a8\u30e9\u30fc\r\n\tvoid myTemp(){\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-7\"><span class=\"Num\">7.<\/span>\u7df4\u7fd2\u554f\u984c1<\/h3>\n<p>\u305d\u308c\u3067\u306f\u3001\u7df4\u7fd2\u554f\u984c\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u300c\u30ab\u30d7\u30bb\u30eb\u5316\u300d\u306e\u7ae0\u306e\u7df4\u7fd2\u554f\u984c\u3067\u4f5c\u6210\u3057\u305fCat\u30af\u30e9\u30b9\u3068Dog\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"Heading Title Title--s\" id=\"Bookmark-7-1\"><span class=\"Num\">7.1.<\/span>\u554f\u984c1<\/h4>\n<p>Cat\u30af\u30e9\u30b9\u3068Dog\u30af\u30e9\u30b9\u306b\u5171\u901a\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u629c\u304d\u51fa\u3057\u305f\u89aa\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001Pet\u30af\u30e9\u30b9\u3092\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u306b\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table class=\"Base-table\">\n<colgroup>\n<col>\n<col>\n<col>\n\t<\/colgroup>\n<tbody>\n<tr>\n<th>\n\t\t\t\t\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tpetpac\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30af\u30e9\u30b9\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tPet\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"3\">\n\t\t\t\t\u30d5\u30a3\u30fc\u30eb\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\tprivate String syurui\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u7a2e\u985e\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tprivate String seibetsu\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u6027\u5225\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tprivate int toshi\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u5e74\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"2\">\n\t\t\t\t\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\n\t\t\t<\/th>\n<td>\n\t\t\t\tpublic Pet()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u4e0b\u8a18\u5185\u5bb9\u3067\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u521d\u671f\u5316\u3059\u308b<\/p>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tsyurui = &quot;\u306a\u305e\u306e\u751f\u7269&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tseibetsu = &quot;\u6027\u5225\u4e0d\u660e&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\ttoshi = 0\n\t\t\t\t\t<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tpublic Pet(String syurui, String seibetsu, int toshi)\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u5404\u5f15\u6570\u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u521d\u671f\u5316\u3059\u308b\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"3\">\n\t\t\t\t\u30e1\u30bd\u30c3\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\tpublic String getSyurui()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u7a2e\u985e\u3092\u8fd4\u3059\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tpublic String getSeibetsu()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u6027\u5225\u3092\u8fd4\u3059\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tpublic int getToshi()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u30da\u30c3\u30c8\u306e\u5e74\u3092\u8fd4\u3059\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"Answer-block\">\n\t<input class=\"SW\" type=\"checkbox\" id=\"Answer-content-1\"><label for=\"Answer-content-1\" class=\"Answer-SW\"><span\n\t\t\tclass=\"Google-icon Google-icon--arrow-single-gray\"><\/span>\u89e3\u7b54\u3092\u8868\u793a\u3059\u308b<\/label><\/p>\n<div class=\"Answer-content\">\n<div class=\"Pre-title\">Pet.java\n\t\t<\/div>\n<pre class=\"Copy\"><code>package petpac;\r\n\r\npublic class Pet {\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9\u5b9a\u7fa9\r\n\tprivate String syurui; \/\/ \u751f\u7269\u306e\u7a2e\u985e\r\n\tprivate String seibetsu; \/\/ \u751f\u7269\u306e\u6027\u5225\r\n\tprivate int toshi; \/\/ \u751f\u7269\u306e\u5e74\u9f62\r\n\r\n\t\/\/ \u5f15\u6570\u306a\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5b9a\u7fa9(\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6307\u5b9a\u3057\u305f\u5024\u3067\u521d\u671f\u5316)\r\n\tpublic Pet() {\r\n\t\tsyurui = \"\u306a\u305e\u306e\u751f\u7269\";\r\n\t\tseibetsu = \"\u6027\u5225\u4e0d\u660e\";\r\n\t\ttoshi = 0;\r\n\t}\r\n\r\n\t\/\/ \u5f15\u6570\u3042\u308a\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5b9a\u7fa9(\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5f15\u6570\u3067\u521d\u671f\u5316)\r\n\tpublic Pet(String syurui, String seibetsu, int toshi) {\r\n\t\tthis.syurui = syurui;\r\n\t\tthis.seibetsu = seibetsu;\r\n\t\tthis.toshi = toshi;\r\n\t}\r\n\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9syurui\u306e\u5024\u3092\u623b\u3059\u30e1\u30bd\u30c3\u30c9\r\n\tpublic String getSyurui() {\r\n\t\treturn syurui;\r\n\t}\r\n\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9seibetsu\u306e\u5024\u3092\u623b\u3059\u30e1\u30bd\u30c3\u30c9\r\n\tpublic String getSeibetsu() {\r\n\t\treturn seibetsu;\r\n\t}\r\n\r\n\t\/\/ \u30d5\u30a3\u30fc\u30eb\u30c9toshi\u306e\u5024\u3092\u623b\u3059\u30e1\u30bd\u30c3\u30c9\r\n\tpublic int getToshi() {\r\n\t\treturn toshi;\r\n\t}\r\n}<\/code><\/pre>\n<p>\t\t\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u306f\u3001\u5404\u69cb\u6587\u306e\u5f62\u5f0f\u901a\u308a\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002\n\t<\/p><\/div>\n<\/div>\n<h4 class=\"Heading Title Title--s\" id=\"Bookmark-7-2\"><span class=\"Num\">7.2.<\/span>\u554f\u984c2<\/h4>\n<p>\u554f\u984c1\u3067\u4f5c\u6210\u3057\u305fPet\u30af\u30e9\u30b9\u3092\u89aa\u30af\u30e9\u30b9\u3068\u3057\u3066\u7d99\u627f\u3059\u308b\u3088\u3046\u306b\u3001Cat\u30af\u30e9\u30b9\u3068Dog\u30af\u30e9\u30b9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001Pet\u30af\u30e9\u30b9\u306f\u4fee\u6b63\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<table class=\"Base-table\">\n<colgroup>\n<col>\n<col>\n<col>\n\t<\/colgroup>\n<tbody>\n<tr>\n<th>\n\t\t\t\t\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tcatpac\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30af\u30e9\u30b9\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tCat\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u89aa\u30af\u30e9\u30b9\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tPet\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30d5\u30a3\u30fc\u30eb\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\t<span class=\"Text-highlight\">Pet\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3059\u308b\u305f\u3081\u8a18\u8ff0\u306f\u4e0d\u8981<\/span>\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"2\">\n\t\t\t\t\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\n\t\t\t<\/th>\n<td>\n\t\t\t\tpublic Cat()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u4e0b\u8a18\u5185\u5bb9\u3067\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u521d\u671f\u5316\u3059\u308b<\/p>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tsyurui = &quot;\u30b9\u30b3\u30c6\u30a3\u30c3\u30b7\u30e5\u30d5\u30a9\u30fc\u30eb\u30c9&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tseibetsu = &quot;\u30e1\u30b9&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\ttoshi = 0\n\t\t\t\t\t<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tpublic Cat(String syurui, String seibetsu, int toshi)\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u89aa\u30af\u30e9\u30b9Pet\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5404\u5f15\u6570\u3067\u521d\u671f\u5316\u3057\u307e\u3059\u3002\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30e1\u30bd\u30c3\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\t<span class=\"Text-highlight\">Pet\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3059\u308b\u305f\u3081\u8a18\u8ff0\u306f\u4e0d\u8981<\/span>\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"Base-table\">\n<colgroup>\n<col>\n<col>\n<col>\n\t<\/colgroup>\n<tbody>\n<tr>\n<th>\n\t\t\t\t\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tdogpac\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30af\u30e9\u30b9\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tDog\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u89aa\u30af\u30e9\u30b9\u540d\n\t\t\t<\/th>\n<td>\n\t\t\t\tPet\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30d5\u30a3\u30fc\u30eb\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\t<span class=\"Text-highlight\">Pet\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3059\u308b\u305f\u3081\u8a18\u8ff0\u306f\u4e0d\u8981<\/span>\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"2\">\n\t\t\t\t\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\n\t\t\t<\/th>\n<td>\n\t\t\t\tpublic Dog()\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u4e0b\u8a18\u5185\u5bb9\u3067\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u521d\u671f\u5316\u3059\u308b<\/p>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tsyurui = &quot;\u30c8\u30a4\u30d7\u30fc\u30c9\u30eb&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\tseibetsu = &quot;\u30e1\u30b9&quot;\n\t\t\t\t\t<\/li>\n<li class=\"Base-list__child\">\n\t\t\t\t\t\ttoshi = 0\n\t\t\t\t\t<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tpublic Dog(String syurui, String seibetsu, int toshi)\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u89aa\u30af\u30e9\u30b9Pet\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5404\u5f15\u6570\u3067\u521d\u671f\u5316\u3057\u307e\u3059\u3002\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\n\t\t\t\t\u30e1\u30bd\u30c3\u30c9\n\t\t\t<\/th>\n<td>\n\t\t\t\t<span class=\"Text-highlight\">Pet\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3059\u308b\u305f\u3081\u8a18\u8ff0\u306f\u4e0d\u8981<\/span>\n\t\t\t<\/td>\n<td>\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Cat\u30af\u30e9\u30b9\u3068Dog\u30af\u30e9\u30b9\u306e\u4fee\u6b63\u5f8c\u3001shop\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u4ee5\u4e0b\u306ePetShop\u30af\u30e9\u30b9\u3092\u65b0\u898f\u3067\u4f5c\u6210\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u305d\u306e\u307e\u307e\u8a18\u8ff0\u3057\u3066\u3001\u5b9f\u884c\u7d50\u679c\u3068\u540c\u69d8\u306e\u51fa\u529b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"Pre-title\">PetShop.java<\/div>\n<pre class=\"Copy\"><code>package shop;\r\n\r\nimport catpac.Cat;\r\nimport dogpac.Dog;\r\nimport petpac.Pet;\r\n\r\npublic class PetShop {\r\n\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\tPet myPet = new Pet();\r\n\t\tPetShop.buyPet(myPet);\r\n\r\n\t\tSystem.out.println(\"---\");\r\n\r\n\t\tCat myCat = new Cat();\r\n\t\tPetShop.buyPet(myCat);\r\n\r\n\t\tmyCat = new Cat(\"\u30a2\u30e1\u30ea\u30ab\u30f3\u30b7\u30e7\u30fc\u30c8\u30d8\u30a2\u30fc\",\"\u30aa\u30b9\", 0);\r\n\t\tPetShop.buyPet(myCat);\r\n\r\n\t\tSystem.out.println(\"---\");\r\n\r\n\t\tDog myDog = new Dog();\r\n\t\tPetShop.buyPet(myDog);\r\n\r\n\t\tmyDog = new Dog(\"\u30b4\u30fc\u30eb\u30c7\u30f3\u30ea\u30c8\u30ea\u30d0\u30fc\",\"\u30aa\u30b9\", 0);\r\n\t\tPetShop.buyPet(myDog);\r\n\t}\r\n\r\n\tprivate static void buyPet(Pet tPet){\r\n\t\tSystem.out.println(tPet.getSyurui()\r\n\t\t\t+ \"\u306e\"\r\n\t\t\t+ tPet.getSeibetsu()\r\n\t\t\t+ \"\u3001\"\r\n\t\t\t+ tPet.getToshi() + \"\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\");\r\n\r\n\t}\r\n}<\/code><\/pre>\n<div class=\"Pre-title\">\u5b9f\u884c\u7d50\u679c<\/div>\n<pre class=\"Copy\"><code>\u306a\u305e\u306e\u751f\u7269\u306e\u6027\u5225\u4e0d\u660e\u30010\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\r\n---\r\n\u30b9\u30b3\u30c6\u30a3\u30c3\u30b7\u30e5\u30d5\u30a9\u30fc\u30eb\u30c9\u306e\u30e1\u30b9\u30010\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\r\n\u30a2\u30e1\u30ea\u30ab\u30f3\u30b7\u30e7\u30fc\u30c8\u30d8\u30a2\u30fc\u306e\u30aa\u30b9\u30010\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\r\n---\r\n\u30c8\u30a4\u30d7\u30fc\u30c9\u30eb\u306e\u30e1\u30b9\u30010\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\r\n\u30b4\u30fc\u30eb\u30c7\u30f3\u30ea\u30c8\u30ea\u30d0\u30fc\u306e\u30aa\u30b9\u30010\u6b73\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002<\/code><\/pre>\n<p><span class=\"Text-highlight\">\u203b\u3053\u306e\u554f\u984c\u306e\u89e3\u7b54\u306f\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u3002<span class=\"Post-link\" >Tech Fun IT\u30b9\u30af\u30fc\u30eb\u306eJava\u7814\u4fee<\/span>\u3067\u306f\u3001\u8b1b\u5e2b\u304c\u4e01\u5be7\u306b\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span class=\"Text-red-bold\">\u73fe\u5728Tech Fun IT\u30b9\u30af\u30fc\u30eb\u3067\u306f\u3001\u65b0\u898f\u53d7\u8b1b\u8005\u306e\u52df\u96c6\u306f\u884c\u306a\u3063\u3066\u304a\u308a\u307e\u305b\u3093\u3002<\/span><\/p>\n<div class=\"Separator\">\n<div class=\"Separator__child\"><\/div>\n<\/div>\n<h3 class=\"Heading Title Title--m\" id=\"Bookmark-8\"><span class=\"Num\">8.<\/span>\u672c\u7ae0\u306e\u307e\u3068\u3081<\/h3>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\u300c\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u300d\u3068\u306f\u3001\u65b0\u3057\u304f\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3001\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u4ed6\u306e\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u305d\u306e\u307e\u307e\u53d7\u3051\u7d99\u3050\u3053\u3068\u304c\u3067\u304d\u308b\u624b\u6cd5\u306e\u3053\u3068\u3002<\/li>\n<li class=\"Base-list__child\">\u7d99\u627f\u3059\u308b\u3068\u304d\u306f\u3001\u30af\u30e9\u30b9\u5b9a\u7fa9\u3092\u3059\u308b\u969b\u306b\u300cextends\u300d\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li class=\"Base-list__child\">\u7d99\u627f\u3059\u308b\u3053\u3068\u3067\u3001\u7d99\u627f\u5143\u306e\u30af\u30e9\u30b9\uff08\u89aa\u30af\u30e9\u30b9\uff09\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u7528\u53ef\u80fd\u3068\u306a\u308b\u3002<\/li>\n<li class=\"Base-list__child\">\u81ea\u5206\u306e\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u3059\u5834\u5408\u306f\u300cthis\u300d\u3092\u4f7f\u3063\u3066\u3001\u540c\u3058\u540d\u524d\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3084\u5f15\u6570\u3068\u533a\u5225\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li class=\"Base-list__child\">\u89aa\u30af\u30e9\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u660e\u793a\u7684\u306b\u6307\u3059\u5834\u5408\u306f\u3001\u300csuper\u300d\u3092\u7528\u3044\u308b\u3002<\/li>\n<li class=\"Base-list__child\">\u300cthis()\u30e1\u30bd\u30c3\u30c9\u300d\u306f\u3001\u81ea\u5206\u306e\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u3002 <\/li>\n<li class=\"Base-list__child\">\u89aa\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u5834\u5408\u306f\u300csuper()\u30e1\u30bd\u30c3\u30c9\u300d\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li class=\"Base-list__child\">this()\u30e1\u30bd\u30c3\u30c9\u3001super()\u30e1\u30bd\u30c3\u30c9\u3068\u3082\u306b\u3001\u4f7f\u3048\u308b\u306e\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e00\u756a\u6700\u521d\u306e\u884c\u3060\u3051\u3067\u3042\u308b\u3002 <\/li>\n<li class=\"Base-list__child\">\u300cfinal\u300d\u3092\u4ed8\u3051\u308b\u3068\u3001\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u306e\u7d99\u627f\u304c\u3067\u304d\u306a\u304f\u306a\u308b\u3002\n\t<\/li>\n<\/ul>\n<p>\u4f7f\u3044\u65b9\u306b\u4e0d\u5b89\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6559\u6750\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u3082\u3046\u4e00\u5ea6\u52d5\u304b\u3057\u3066\u307f\u308b\u306a\u3069\u3057\u3066\u5fa9\u7fd2\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u306f\u3001\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u672c\u7ae0\u3067\u306e\u5b66\u7fd2\u9805\u76ee \u672c\u7ae0\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u306a\u6a5f\u80fd\u3067\u3042\u308b\u3001\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u306b\u95a2\u3057\u3066\u5b66\u7fd2\u3057\u307e\u3059\u3002 2.\u672c\u7ae0\u306e\u8b1b\u7fa9 \u672c\u7ae0\u3067\u5b66\u7fd2\u3059\u308b\u5185\u5bb9\u3092\u52d5\u753b\u3068\u3057\u3066\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\u3002\u6700\u521d\u306b\u4e00\u901a\u308a\u898b\u7d42\u308f\u3063\u305f\u5f8c\u3067\u2026<\/p>\n","protected":false},"author":5,"featured_media":6004,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-base"],"acf":{"chapter":9,"javabase_order":10,"list-display_description":"\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u306a\u6a5f\u80fd\u3067\u3042\u308b\u30a4\u30f3\u30d8\u30ea\u30bf\u30f3\u30b9\uff08\u7d99\u627f\uff09\u306b\u95a2\u3057\u3066\u5b66\u7fd2\u3057\u307e\u3059\u3002"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":28,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":6509,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/175\/revisions\/6509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media\/6004"}],"wp:attachment":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/categories?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}