{"id":535,"date":"2019-02-16T11:23:48","date_gmt":"2019-02-16T03:23:48","guid":{"rendered":"http:\/\/www.eait.co\/?p=535"},"modified":"2019-04-05T12:32:21","modified_gmt":"2019-04-05T04:32:21","slug":"java-%e6%8e%a5%e5%8f%a3%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=535","title":{"rendered":"java\u2014\u2014\u63a5\u53e3\u5e94\u7528"},"content":{"rendered":"<pre>\/**\r\n * Created by xabcd on 2019\/2\/16.\r\n *\/\r\n\r\n    interface A\r\n    {\r\n        int i = 10;\r\n        public void sayI();\r\n    }\r\n    interface E\r\n    {\r\n        int x = 40;\r\n        public void sayE();\r\n    }\r\n    interface B extends A,E{\r\n        int j = 20;\r\n        public void sayJ();\r\n    }\r\n    class C implements B {\/\/<span style=\"color: #ff0000;\">\u6b64\u7c7b\u5b9e\u73b0\u4e86B\u63a5\u53e3\uff0c\u6240\u4ee5\u8981\u8986\u5199ABE\u4e2d\u5168\u90e8\u7684\u62bd\u8c61\u65b9\u6cd5<\/span>\r\n        public void sayI()\r\n\r\n        {\r\n            System.out.println(\"i=\" + i);\r\n        }\r\n\r\n        public void sayJ()\r\n\r\n        {\r\n            System.out.println(\"j=\" + j);\r\n        }\r\n\r\n        public void sayE()\r\n\r\n        {\r\n            System.out.println(\"e=\" + x);\r\n        }\r\n    }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/pre>\n<pre>\/**\r\n * Created by xabcd on 2019\/2\/16.\r\n *\/\r\npublic class test_jiekou\r\n{\r\n    public static void main(String[] args)\r\n    {\r\n        C c = new C();\r\n        c.sayI();\r\n        c.sayJ();\r\n    }\r\n}\r\n\r\n\r\n\u7ed3\u679c\uff1a\r\ni=10\r\nj=20<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/** * Created by xabcd on 2019\/2\/16. *\/ interface A { i [&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-535","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\/535","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=535"}],"version-history":[{"count":2,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/535\/revisions"}],"predecessor-version":[{"id":537,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/535\/revisions\/537"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}