{"id":500,"date":"2019-02-15T23:04:41","date_gmt":"2019-02-15T15:04:41","guid":{"rendered":"http:\/\/www.eait.co\/?p=500"},"modified":"2019-04-05T12:32:23","modified_gmt":"2019-04-05T04:32:23","slug":"java%e7%94%a8super%e8%b0%83%e7%94%a8%e7%88%b6%e7%b1%bb%e7%9a%84%e6%9e%84%e9%80%a0%e6%96%b9%e6%b3%95%ef%bc%9a","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=500","title":{"rendered":"java\u7528super\u8c03\u7528\u7236\u7c7b\u7684\u6784\u9020\u65b9\u6cd5\uff1a"},"content":{"rendered":"<pre>import java.util.SplittableRandom;\r\n\r\n\/**\r\n * Created by xabcd on 2019\/2\/15.\r\n *\/\r\npublic class Person7\r\n{\r\n    String name;\r\n    int age;\r\n    public Person7(String name,int age){\r\n        this.name=name;\r\n        this.age= age;\r\n        \/\/System.out.println(\"1.public Person7(){}\" );\r\n\r\n    }\r\n}\r\nclass Studentt extends Person7{\r\n    String school;\r\n    public Studentt()\r\n    {\r\n        \/\/\u5728\u8fd9\u91cc\u8c03\u7528\u7236\u7c7b\u7684\u6784\u9020\u65b9\u6cd5\r\n        super(\"\u5f20\u4e09\",25);\r\n        \/\/System.out.println(\"2.public Student(){}\");\r\n    }\r\n\r\n\r\n    public static void main(String[] args)\r\n    {\r\n        Studentt s = new Studentt();\r\n        s.school= \"\u5317\u4eac\";\r\n        System.out.println(\"\u59d3\u540d\uff1a\"+s.name+\"\uff0c\u5e74\u9f84\"+s.age+\"\uff0c\u5b66\u6821\uff1a\"+s.school);\r\n\r\n    }\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\u7ed3\u679c\uff1a\r\n\u59d3\u540d\uff1a\u5f20\u4e09\uff0c\u5e74\u9f8425\uff0c\u5b66\u6821\uff1a\u5317\u4eac\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/pre>\n<p>\u6ce8\u610f\uff1a \u7528 super \u8c03\u7528 \u7236 \u7c7b \u4e2d\u7684 \u6784\u9020 \u65b9\u6cd5\uff0c \u53ea\u80fd \u653e\u5728 \u7a0b\u5e8f \u7684 \u7b2c 1 \u884c\u3002 super \u5173\u952e\u5b57 \u4e0d\u4ec5 \u53ef\u7528 \u4e8e \u8c03\u7528 \u7236 \u7c7b \u4e2d\u7684 \u6784\u9020 \u65b9\u6cd5\uff0c \u4e5f\u53ef \u7528\u4e8e \u8c03\u7528 \u7236 \u7c7b \u4e2d\u7684 \u5c5e\u6027 \u6216 \u65b9\u6cd5\uff0c<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>import java.util.SplittableRandom; \/** * Created by xab [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,24],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-java","category-base_code"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":2,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/502"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}