{"id":460,"date":"2019-02-14T22:43:18","date_gmt":"2019-02-14T14:43:18","guid":{"rendered":"http:\/\/www.eait.co\/?p=460"},"modified":"2019-04-05T12:32:51","modified_gmt":"2019-04-05T04:32:51","slug":"java%e6%9e%84%e9%80%a0%e6%96%b9%e6%b3%95%e7%9a%84%e9%87%8d%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=460","title":{"rendered":"java\u6784\u9020\u65b9\u6cd5\u7684\u91cd\u8f7d"},"content":{"rendered":"<pre>\/**\r\n * Created by xabcd on 2019\/2\/14.\r\n *\/\r\npublic class Person3\r\n{\r\n    private String name;\r\n    private  int age;\r\n    public  Person3(String n,int a)<span style=\"color: #ff0000;\">\/\/\u5c06\u4f20\u5165\u7684\u503c\u8d4b\u7ed9Person3\u7684\u5c5e\u6027\uff0c\u5373\u4e0a\u9762\u4e24\u884c\uff01<\/span>\r\n    {\r\n        name = n;\r\n        age = a;\r\n        System.out.println(\"plblic Person(String n,int a)\");\r\n    }\r\n    public String talk()\r\n    {\r\n        return \"\u6211\u662f\uff1a\"+name+\",\u4eca\u5e74\uff1a\"+age+\"\u5c81\";\r\n    }\r\n    public static void main(String[] args)\r\n    {\r\n        Person3 p = new Person3(\"\u5f20\u4e09\",25);<span style=\"color: #ff0000;\">\/\/\u8c03\u7528\u6784\u9020\u65b9\u6cd5\uff0c\u5c06\u59d3\u540d\u548c\u5e74\u9f84\u4f20\u9012\u5230\u7c7b\u91cc\u9762\u5206\u522b\u5bf9\u5404\u4e2a\u5c5e\u6027\u8fdb\u884c\u8d4b\u503c<\/span>\r\n        System.out.println(p.talk());<span style=\"color: #ff0000;\">\/\/\u8c03\u7528takl\uff08\uff09\u65b9\u6cd5\uff0c\u6253\u5370\u4fe1\u606f<\/span>\r\n    }\r\n}\r\n\r\n\r\n\r\n\u7ed3\u679c\uff1a\r\nplblic Person(String n,int a)\r\n\u6211\u662f\uff1a\u5f20\u4e09,\u4eca\u5e74\uff1a25\u5c81\u3002\r\n\r\n\r\n\r\n\r\n<\/pre>\n<p>\u4ece \u672c \u7a0b\u5e8f \u53ef\u4ee5 \u53d1\u73b0\uff0c \u6784\u9020 \u65b9\u6cd5 \u7684 \u57fa\u672c \u4f5c\u7528 \u5c31 \u662f\u5bf9 \u7c7b \u4e2d\u7684 \u5c5e\u6027 \u521d\u59cb\u5316\uff0c \u5728 \u7a0b\u5e8f \u4ea7\u751f \u7c7b \u7684 \u5b9e\u4f8b \u5bf9\u8c61 \u65f6\uff0c \u5c06 \u9700\u8981 \u7684 \u53c2\u6570 \u7531 \u6784\u9020 \u65b9\u6cd5 \u4f20\u5165\uff0c \u4e4b\u540e \u518d\u7531 \u6784\u9020 \u65b9\u6cd5 \u4e3a \u5176 \u5185\u90e8 \u7684 \u5c5e\u6027 \u8fdb\u884c \u521d\u59cb\u5316\u3002 \u8fd9\u662f \u5728 \u4e00\u822c \u5f00\u53d1 \u4e2d\u7ecf \u5e38\u4f7f \u7528\u7684 \u6280\u5de7\uff0c \u4f46\u662f \u8fd9\u91cc \u6709\u4e00\u4e2a \u95ee\u9898\u662f \u8bfb\u8005 \u5e94\u8be5 \u6ce8\u610f \u7684\uff0c \u8bf7\u770b \u4e0b\u9762 \u7684 \u7a0b\u5e8f\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre>\r\n\r\n\r\n\r\n\u672c\u4f8b\u5b9e\u73b0\u4e86\u5c06\u4e24\u4e2a\u6587\u4ef6\u5199\u6210\u4e00\u4e2a\u6587\u4ef6<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/** * Created by xabcd on 2019\/2\/14. *\/ public class Pe [&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-460","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\/460","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=460"}],"version-history":[{"count":6,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/460\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/460\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}