{"id":556,"date":"2019-02-16T16:33:41","date_gmt":"2019-02-16T08:33:41","guid":{"rendered":"http:\/\/www.eait.co\/?p=556"},"modified":"2019-04-05T12:31:47","modified_gmt":"2019-04-05T04:31:47","slug":"java-%e5%8c%bf%e5%90%8d%e5%86%85%e9%83%a8%e7%b1%bb%ef%bc%9a","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=556","title":{"rendered":"java\u2014\u2014\u533f\u540d\u5185\u90e8\u7c7b2\uff1a"},"content":{"rendered":"<pre>interface A\r\n{\r\n    public void fun1();\r\n}\r\nclass B\r\n{\r\n    int i = 10;\r\n    class C implements A\r\n    {\r\n        public void fun1()\r\n        {\r\n            System.out.println(i);\r\n        }\r\n    }\r\n    public void get(A a)\/\/<span style=\"color: #ff0000;\">\u7528\u4e8eA\u63a5\u53e3\u7684\u5b9e\u4f8b\u5316\u5e76\u8c03\u7528fun1\uff08\uff09\u65b9\u6cd5<\/span>\r\n    {\r\n        a.fun1();\r\n    }\r\n    public void test()\/\/\u6b64\u65b9\u6cd5\u7528\u4e8e\u8c03\u7528get\uff08\uff09\u65b9\u6cd5\r\n    {\r\n        this.get(new C());\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_niming\r\n{\r\n    public static void main(String[] args)\r\n    {\r\n        B b = new B ();\r\n        b.test();\r\n    }\r\n}\r\n\r\n\r\n\r\n\r\n\u7ed3\u679c\uff1a\r\n10<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>interface A { public void fun1(); } class B { int i = 1 [&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-556","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\/556","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=556"}],"version-history":[{"count":4,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}