{"id":524,"date":"2019-02-16T10:37:46","date_gmt":"2019-02-16T02:37:46","guid":{"rendered":"http:\/\/www.eait.co\/?p=524"},"modified":"2019-04-05T12:32:22","modified_gmt":"2019-04-05T04:32:22","slug":"java-%e6%8a%bd%e8%b1%a1%e7%b1%bb%e7%9a%84%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=524","title":{"rendered":"java\u2014\u2014\u62bd\u8c61\u7c7b\u7684\u4f7f\u7528"},"content":{"rendered":"<pre>\/**\r\n * Created by xabcd on 2019\/2\/16.\r\n *\/\r\nabstract class java_chouxiang1\r\n{String name;\r\n    int age;\r\n    String occupation;\r\n    \/\/\u58f0\u660e\u4e00\u79cd\u62bd\u8c61\u65b9\u6cd5talk\uff08\uff09\r\n    public java_chouxiang1(String name,int age,String occuupation)\r\n    {\r\n        this.name = name;\r\n        this.age = age;\r\n        this.occupation= occuupation;\r\n    }\r\n    public abstract String talk();\r\n}\r\n\/\/Student4\u7c7b\u7ee7\u627f\u81eajava_chouxiang1\u7c7b\r\nclass Student4 extends java_chouxiang1\r\n{\r\n   public Student4(String name,int age,String occupation) {\r\n\/\/       <span style=\"color: #ff0000;\">\/\/\u5728\u8fd9\u91cc\u5fc5\u987b\u660e\u786e\u8c03\u7528\u62bd\u8c61\u7c7b\u4e2d\u7684\u6784\u9020\u65b9\u6cd5\uff08\u62bd\u8c61\u7c7b\u4e2d\u58f0\u660e\u6784\u9020\u65b9\u6cd5\u540e\uff0c\u9700\u8981\u5728\u5b50\u7c7b\u4e2d\u660e\u786e\u8c03\u7528\uff09<\/span>\r\n       super(name,age, occupation);\r\n   }\r\n       \/\/\u8986\u5199talk\uff08\uff09\u65b9\u6cd5\r\n       public String talk()\r\n       {\r\n           return \"\u5b66\u751f\u2014\u2014\u300b\u59d3\u540d\uff1a\" + this.name + \",\u5e74\u9f84\uff1a\" + this.age + \"\u804c\u4e1a\uff1a\" + this.occupation;\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_chouxiang\r\n{\r\n    public static void main(String[] args)\r\n    {\r\n        Student4 s = new Student4(\"\u5f20\u4e09\",20,\"\u5b66\u751f\");\r\n        System.out.println(s.talk());\r\n\r\n    }\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\u5b66\u751f\u2014\u2014\u300b\u59d3\u540d\uff1a\u5f20\u4e09,\u5e74\u9f84\uff1a20\u804c\u4e1a\uff1a\u5b66\u751f<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/** * Created by xabcd on 2019\/2\/16. *\/ abstract class  [&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-524","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\/524","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=524"}],"version-history":[{"count":4,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}