{"id":2904,"date":"2023-07-14T13:50:39","date_gmt":"2023-07-14T05:50:39","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2904"},"modified":"2023-07-14T13:50:40","modified_gmt":"2023-07-14T05:50:40","slug":"java-%e6%8e%a5%e5%8f%a3-%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/java\/java-%e6%8e%a5%e5%8f%a3-%e8%af%a6%e8%a7%a3\/","title":{"rendered":"java \u63a5\u53e3 \u8be6\u89e3"},"content":{"rendered":"<link rel=\"stylesheet\" href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\">\n \t<link rel=\"stylesheet\" href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-25cebea3f9.css\">\n<div id=\"content_views\" class=\"htmledit_views\">\n<p id=\"main-toc\"><strong>\u76ee\u5f55<\/strong><\/p>\n<p id=\"%E4%B8%80%E3%80%81%E6%A6%82%E8%BF%B0-toc\" style=\"margin-left:0px;\"><a href=\"#%E4%B8%80%E3%80%81%E6%A6%82%E8%BF%B0\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u3001\u6982\u8ff0<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E4%BB%8B%E7%BB%8D%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E4%BB%8B%E7%BB%8D%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 1.\u4ecb\u7ecd :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%AE%9A%E4%B9%89%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%AE%9A%E4%B9%89%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 2.\u5b9a\u4e49 :&nbsp;<\/a><\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E7%89%B9%E7%82%B9%C2%A0-toc\" style=\"margin-left:0px;\"><a href=\"#%E4%BA%8C%E3%80%81%E7%89%B9%E7%82%B9%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >\u4e8c\u3001\u7279\u70b9&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 1.\u63a5\u53e3\u6210\u5458\u53d8\u91cf\u7684\u7279\u70b9 :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 2.\u63a5\u53e3\u6210\u5458\u65b9\u6cd5\u7684\u7279\u70b9 :<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.%E6%8E%A5%E5%8F%A3%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.%E6%8E%A5%E5%8F%A3%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 3.\u63a5\u53e3\u6784\u9020\u65b9\u6cd5\u7684\u7279\u70b9 :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%204.%E6%8E%A5%E5%8F%A3%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%204.%E6%8E%A5%E5%8F%A3%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 4.\u63a5\u53e3\u521b\u5efa\u5bf9\u8c61\u7684\u7279\u70b9 :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%205.%E6%8E%A5%E5%8F%A3%E7%BB%A7%E6%89%BF%E5%85%B3%E7%B3%BB%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%205.%E6%8E%A5%E5%8F%A3%E7%BB%A7%E6%89%BF%E5%85%B3%E7%B3%BB%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 5.\u63a5\u53e3\u7ee7\u627f\u5173\u7cfb\u7684\u7279\u70b9 :&nbsp;<\/a><\/p>\n<p id=\"%E4%B8%89%E3%80%81%E5%BA%94%E7%94%A8%20%3A%C2%A0-toc\" style=\"margin-left:0px;\"><a href=\"#%E4%B8%89%E3%80%81%E5%BA%94%E7%94%A8%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >\u4e09\u3001\u5e94\u7528 :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%83%85%E6%99%AF%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%83%85%E6%99%AF%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 1.\u60c5\u666f :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%A4%9A%E6%80%81%20%3A%C2%A0-toc\" style=\"margin-left:40px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%A4%9A%E6%80%81%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp; &nbsp; &nbsp; &nbsp; 2.\u591a\u6001 :&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/a><\/p>\n<p id=\"%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%E2%91%A0%E5%A4%9A%E6%80%81%E7%9A%84%E4%BC%A0%E9%80%92%E6%80%A7%20%3A%C2%A0-toc\" style=\"margin-left:80px;\"><a href=\"#%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%E2%91%A0%E5%A4%9A%E6%80%81%E7%9A%84%E4%BC%A0%E9%80%92%E6%80%A7%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u2460\u591a\u6001\u7684\u4f20\u9012\u6027 :&nbsp;<\/a><\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%E2%91%A1%E5%85%B3%E4%BA%8E%E6%8E%A5%E5%8F%A3%E7%9A%84%E5%A4%9A%E6%80%81%E5%8F%82%E6%95%B0%E5%92%8C%E5%A4%9A%E6%80%81%E6%95%B0%E7%BB%84%20%3A%C2%A0-toc\" style=\"margin-left:80px;\"><a href=\"#%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%E2%91%A1%E5%85%B3%E4%BA%8E%E6%8E%A5%E5%8F%A3%E7%9A%84%E5%A4%9A%E6%80%81%E5%8F%82%E6%95%B0%E5%92%8C%E5%A4%9A%E6%80%81%E6%95%B0%E7%BB%84%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u2461\u5173\u4e8e\u63a5\u53e3\u7684\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4 :&nbsp;<\/a><\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E6%80%BB%E7%BB%93%20%3A%C2%A0-toc\" style=\"margin-left:0px;\"><a href=\"#%E5%9B%9B%E3%80%81%E6%80%BB%E7%BB%93%20%3A%C2%A0\" target=\"_blank\"  rel=\"nofollow\" >\u56db\u3001\u603b\u7ed3 :&nbsp;<\/a><\/p>\n<hr>\n<h1 id=\"%E4%B8%80%E3%80%81%E6%A6%82%E8%BF%B0\">\u4e00\u3001\u6982\u8ff0<\/h1>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E4%BB%8B%E7%BB%8D%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 1.\u4ecb\u7ecd :&nbsp;<\/h2>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong><span style=\"background-color:#fefcd8;\">\u63a5\u53e3\u6280\u672f\u7528\u4e8e\u63cf\u8ff0\u7c7b\u5177\u6709\u4ec0\u4e48\u529f\u80fd\uff0c\u4f46\u5e76\u4e0d\u7ed9\u51fa\u5177\u4f53\u5b9e\u73b0\uff0c\u5f53\u67d0\u4e2a\u7c7b\u8981\u4f7f\u7528\u63a5\u53e3\u65f6\uff0c\u518d\u53bb\u5b9e\u73b0\u63a5\u53e3\u4e2d\u7684\u8fd9\u4e9b\u65b9\u6cd5\u3002\u7c7b\u9700\u8981\u9075\u4ece\u63a5\u53e3\u4e2d\u63cf\u8ff0\u7684\u7edf\u4e00\u89c4\u5219\u8fdb\u884c\u5b9a\u4e49\uff0c\u6240\u4ee5\uff0c\u63a5\u53e3\u662f\u5bf9\u5916\u63d0\u4f9b\u7684\u4e00\u7ec4<span style=\"color:#956fe7;\">\u89c4\u5219\uff0c\u6807\u51c6<\/span>\u3002<\/span><\/strong><\/p><\/blockquote>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%AE%9A%E4%B9%89%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 2.\u5b9a\u4e49 :&nbsp;<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; \u2460<span style=\"color:#fe2c24;\"><strong>\u5b9a\u4e49\u63a5\u53e3<\/strong><\/span>\u8981\u7528\u5230<span style=\"color:#fe2c24;\"><strong>\u5173\u952e\u5b57interface<\/strong><\/span>\uff0c\u683c\u5f0f\u5982\u4e0b :&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#4da8ee;\"><strong>interface <\/strong><\/span>\u63a5\u53e3\u540d {<!-- --><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u2461\u7c7b\u548c\u63a5\u53e3\u4e4b\u95f4\u4e0d\u518d\u662f\u7ee7\u627f\uff0c\u800c\u662f<span style=\"color:#fe2c24;\"><strong>\u5b9e\u73b0\u5173\u7cfb<\/strong><\/span>\uff0c\u7528<span style=\"color:#fe2c24;\"><strong>implements\u5173\u952e\u5b57<\/strong><\/span>\u8868\u793a\u3002\u5982\u4e0b :&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#4da8ee;\"><strong>class <\/strong><\/span>\u7c7b\u540d <span style=\"color:#4da8ee;\"><strong>implements <\/strong><\/span>\u63a5\u53e3\u540d {<!-- --><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u0394\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<strong><span style=\"background-color:#fefcd8;\">\u4e0e\u7c7b\u7684\u5b9a\u4e49\u7c7b\u4f3c\uff0c\u63a5\u53e3\u7684\u8bbf\u95ee\u6743\u9650\u4fee\u9970\u7b26\u53ea\u80fd\u662fpublic\u6216\u8005\u9ed8\u8ba4<\/span><\/strong>\u3002&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <u><strong>IDEA\u4e2d\u5b9a\u4e49\u63a5\u53e3\u7684\u6b65\u9aa4\u5982\u4e0b :&nbsp;<\/strong><\/u><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; 1&gt;\u5148\u50cf\u5e73\u65f6\u521b\u5efa\u7c7b\u4e00\u6837\u6b63\u5e38\u70b9\u51fbNew\u2014\u2014&gt;Java Class\uff1b\u5982\u4e0b\u56fe\u6240\u793a :&nbsp;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"300\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"699\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"300\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png\" width=\"699\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2&gt;\u7136\u540e\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9Interface\uff0c\u8f93\u5165\u63a5\u53e3\u540d\uff0c\u56de\u8f66\u5373\u53ef\u3002\u5982\u4e0b\u56fe\u6240\u793a :&nbsp;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"296\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350096969f29a5.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"306\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"296\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350096969f29a5.png\" width=\"306\"><\/noscript><\/p>\n<\/blockquote>\n<h1 id=\"%E4%BA%8C%E3%80%81%E7%89%B9%E7%82%B9%C2%A0\">\u4e8c\u3001\u7279\u70b9&nbsp;<\/h1>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E5%8F%98%E9%87%8F%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 1.\u63a5\u53e3\u6210\u5458\u53d8\u91cf\u7684\u7279\u70b9 :&nbsp;<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; \u0394<strong>\u63a5\u53e3\u4e2d<span style=\"color:#fe2c24;\">\u6ca1\u6709\u6210\u5458\u53d8\u91cf<\/span>\uff0c<span style=\"color:#fe2c24;\">\u53ea\u6709<u>\u516c\u6709\u9759\u6001\u5e38\u91cf<\/u><\/span>\u3002<\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u5373<strong>\u9ed8\u8ba4\u60c5\u51b5<\/strong>\u4e0b\u5c5e\u6027\u524d\u90fd\u4f1a\u6709public static final \u8fd9\u4e09\u4e2a\u5173\u952e\u5b57\u4fee\u9970\u3002\u5982\u4e0b :&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#4da8ee;\"><strong>public static final <\/strong><\/span><strong>\u6570\u636e\u7c7b\u578b<\/strong> <strong>\u5e38\u91cf\u540d<\/strong> = <strong>\u5e38\u91cf\u503c<\/strong>;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u0394\u8fd8\u8bb0\u5f97\u6211\u4eec\u5728<a class=\"link-info\" href=\"https:\/\/blog.csdn.net\/TYRA9\/article\/details\/129097055?spm=1001.2014.3001.5501\" title=\"final\u5173\u952e\u5b57\u8be6\u89e3\" target=\"_blank\"  rel=\"nofollow\" >final\u5173\u952e\u5b57\u8be6\u89e3<\/a>\u4e2d\u8bb2\u5230\u7684\u2014\u2014<span style=\"color:#fe2c24;\">\u5173\u4e8efinal\u4fee\u9970\u5c5e\u6027\u7684\u521d\u59cb\u5316\u95ee\u9898<\/span>\u5417\uff1f<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u5f53\u65f6\uff0c\u6211\u4eec\u8bf4\uff0cfinal\u4fee\u9970\u7684\u5c5e\u6027\u5fc5\u987b\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u800c\u5bf9\u4e8e\u516c\u6709\u9759\u6001\u5e38\u91cf\uff0c\u521d\u59cb\u5316\u7684\u9014\u5f84\u53ea\u6709\u4e24\u6761\u2014\u2014\u2460\u5b9a\u4e49\u65f6\u2461\u9759\u6001\u4ee3\u7801\u5757\u4e2d\u3002\u4f46\u662f\u5f88\u9057\u61be\uff0c\u63a5\u53e3\u4e2d\u4e0d\u5141\u8bb8\u5b58\u5728\u4ee3\u7801\u5757\uff0c\u800c\u4e14\u63a5\u53e3\u6ca1\u6709\u6784\u9020\u65b9\u6cd5\u3002\u56e0\u6b64\uff0c\u8fd9\u5c31\u8981\u6c42\u6211\u4eec<span style=\"color:#0d0016;\"><strong><span style=\"background-color:#ffd900;\">\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u516c\u6709\u9759\u6001\u5e38\u91cf\u65f6\uff0c\u5fc5\u987b\u5728\u5b9a\u4e49\u65f6\u5c31\u8d4b\u521d\u503c<\/span><\/strong><\/span>\u3002\u5426\u5219IDEA\u62a5\u9519\u3002<\/p><\/blockquote>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#956fe7;\"><strong>\u6f14\u793a :&nbsp;<\/strong><\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6211\u4eec\u4ee5DemoInterface\u63a5\u53e3\u4e3a\u6f14\u793a\u63a5\u53e3\uff0c\u5728\u8be5\u63a5\u53e3\u4e2d\u5b9a\u4e49i\u53d8\u91cf\uff0c\u5e76\u5b9a\u4e49Test\u7c7b\u4f5c\u4e3a\u6d4b\u8bd5\u7c7b\uff0c\u5982\u4e0b\u6240\u793a :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"312\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/20230714135010929227d4e.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"836\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"312\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/20230714135010929227d4e.png\" width=\"836\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u53ef\u4ee5\u770b\u5230\uff0cIDEA\u5bf9\u4e8ei\u53d8\u91cf\u524d\u7684\u4e09\u4e2a\u5173\u952e\u5b57\u5747\u4f5c\u4e86\u7070\u8272\u5904\u7406\uff0c\u8868\u660e\u8fd9\u4e09\u4e2a\u4fee\u9970\u7b26\u662f\u9ed8\u8ba4\u7684\uff0c\u4f60\u5199\u4e0d\u5199\u5b83\u90fd\u5728\uff01\u5728\u6d4b\u8bd5\u7c7b\u4e2d\uff0c\u6211\u4eec\u5c1d\u8bd5\u66f4\u6539i\u53d8\u91cf\u7684\u503c\uff0cIDEA\u4f1a\u9a6c\u4e0a\u62a5\u9519\uff0c\u5982\u4e0b\u56fe\u6240\u793a :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"517\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350109191d4c57.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"1200\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"517\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350109191d4c57.png\" width=\"1200\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u800c\u53ef\u901a\u8fc7\u63a5\u53e3\u540d\u6765\u8c03\u7528i\u53d8\u91cf\u4e5f\u4f53\u73b0\u51fastatic\u5173\u952e\u5b57\u7684\u5b58\u5728\u3002<\/p>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E6%8E%A5%E5%8F%A3%E6%88%90%E5%91%98%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A\">&nbsp; &nbsp; &nbsp; &nbsp; 2.\u63a5\u53e3\u6210\u5458\u65b9\u6cd5\u7684\u7279\u70b9 :<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#0d0016;\"><strong>\u2460<\/strong><\/span>\u5728JDK<span style=\"color:#be191c;\"><strong>7.0<\/strong><\/span>\u7248\u672c\u53ca\u5176\u4e4b\u524d\u7248\u672c\u4e2d\uff0c\u63a5\u53e3\u4e2d\u4ec5\u652f\u6301<span style=\"color:#956fe7;\"><strong>\u516c\u6709\u7684\u62bd\u8c61\u65b9\u6cd5<\/strong><\/span>\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#4da8ee;\"><strong>public abstract<\/strong><\/span> \u8fd4\u56de\u503c\u7c7b\u578b \u65b9\u6cd5\u540d();&nbsp;&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u0394\u4e8b\u5b9e\u4e0a\uff0c<strong>\u63a5\u53e3\u4e2d\u7684\u65b9\u6cd5\u9ed8\u8ba4\u5c31\u662f\u516c\u6709\u62bd\u8c61\u65b9\u6cd5\uff0c\u56e0\u6b64\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u62bd\u8c61\u65b9\u6cd5\u65f6\uff0c\u53ef\u4ee5\u7701\u7565\u6389abstract\u5173\u952e\u5b57<\/strong>\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#0d0016;\"><strong>\u2461<\/strong><\/span>\u4eceJDK<span style=\"color:#be191c;\"><strong>8.0<\/strong><\/span>\u5f00\u59cb\uff0c\u63a5\u53e3\u4e2d\u53ef\u4ee5\u7531<span style=\"color:#a2e043;\"><strong>\u9ed8\u8ba4\u65b9\u6cd5<\/strong><\/span>\u548c<span style=\"color:#38d8f0;\"><strong>\u9759\u6001\u65b9\u6cd5<\/strong><\/span>\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#a2e043;\">\u9ed8\u8ba4\u65b9\u6cd5<\/span><\/strong>\u2014\u2014<span style=\"color:#4da8ee;\"><strong>public default <\/strong><\/span>\u8fd4\u56de\u503c\u7c7b\u578b \u65b9\u6cd5\u540d() {<!-- --><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#38d8f0;\">\u9759\u6001\u65b9\u6cd5<\/span><\/strong>\u2014\u2014<span style=\"color:#4da8ee;\"><strong>public static <\/strong><\/span>\u8fd4\u56de\u503c\u7c7b\u578b \u65b9\u6cd5\u540d() {<!-- --><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u0394\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u60f3\u5b9a\u4e49<strong>\u9ed8\u8ba4\u65b9\u6cd5\u5fc5\u987b\u5728\u524d\u9762\u6dfb\u52a0<span style=\"color:#fe2c24;\">default\u5173\u952e\u5b57<\/span><\/strong>\uff0c\u56e0\u4e3a\u63a5\u53e3\u4e2d\u7684\u65b9\u6cd5\u5982\u679c\u4f60\u4ec0\u4e48\u90fd\u4e0d\u5199\uff0c\u9ed8\u8ba4\u662f\u516c\u6709\u7684\u62bd\u8c61\u7684\u65b9\u6cd5\u3002\u9ed8\u8ba4\u65b9\u6cd5\u53ef\u4ee5\u6709\u65b9\u6cd5\u4f53\uff0c\u4e14\u4e0d\u9700\u8981\u5b9e\u73b0\u7c7b\u53bb\u5b9e\u73b0\uff0c\u5176\u5b9e\u5c31\u662f\u6211\u4eec\u5e73\u65f6\u89c1\u5230\u7684\u666e\u901a\u7684\u6210\u5458\u65b9\u6cd5\u3002\u4f46\u662f\u9ed8\u8ba4\u65b9\u6cd5\u662f\u53ef\u4ee5\u88ab\u5b9e\u73b0\u7c7b\u91cd\u5199\u7684\u3002<span style=\"color:#fe2c24;\"><strong>default\u5173\u952e\u5b57\u53ea\u80fd\u5728\u63a5\u53e3\u4e2d\u4f7f\u7528<\/strong><\/span>\u3002\u5c31\u7b97\u5b9e\u73b0\u7c7b\u8981\u91cd\u5199\u9ed8\u8ba4\u65b9\u6cd5\uff0c\u5b9e\u73b0\u7c7b\u4e2d\u91cd\u5199\u540e\u7684\u65b9\u6cd5\u4e5f\u4e0d\u80fd\u6dfb\u52a0default\u4fee\u9970\u7b26\uff0c\u4e0d\u7136IDEA\u62a5\u9519\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#0d0016;\"><strong>\u2462<\/strong><\/span>JDK<span style=\"color:#be191c;\"><strong>9.0<\/strong><\/span>\u4ee5\u540e\uff0c\u63a5\u53e3\u4e2d\u53ef\u4ee5\u6709<span style=\"color:#956fe7;\"><strong>\u79c1\u6709\u65b9\u6cd5&nbsp;<\/strong><\/span>:<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#4da8ee;\"><strong>private <\/strong><\/span>\u8fd4\u56de\u503c\u7c7b\u578b \u65b9\u6cd5\u540d() {<!-- --><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/p><\/blockquote>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#956fe7;\"><strong>\u6f14\u793a :&nbsp;<\/strong><\/span><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6211\u4eec\u4ee5Demo2\u63a5\u53e3\u4e3a\u6f14\u793a\u63a5\u53e3\uff0c\u4ee5Imple\u7c7b\u4f5c\u4e3aDemo2\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\uff0c\u6700\u540e\u4ee5Test2\u7c7b\u4f5c\u4e3a\u6d4b\u8bd5\u7c7b\uff0c\u4ee3\u7801\u5982\u4e0b :&nbsp;<\/p>\n<pre><code class=\"language-java\">package knowledge.port.characters.methods;\n\npublic interface Demo2 {\n    \/\/\u2460\u5728JDK7.0\u7248\u672c\u4e4b\u524d\uff0c\u63a5\u53e3\u4e2d\u4ec5\u652f\u6301\u516c\u6709\u7684\u62bd\u8c61\u65b9\u6cd5\uff1a\n    public abstract void hello_world();\n\n    \/\/\u2461\u4eceJDK8.0\u5f00\u59cb\uff0c\u63a5\u53e3\u4e2d\u53ef\u4ee5\u7531\u9ed8\u8ba4\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\uff1a\n        \/\/\u9ed8\u8ba4\u65b9\u6cd5\n        public default void what_time() {\n            System.out.println(\"\u59e5\u59e5\u2014\u2014\u59e5\u59e5\u2014\u2014\u51e0\u70b9\u5566\uff1f\");\n        }\n        \/\/\u9759\u6001\u65b9\u6cd5\n        public static double Sum(double x, double y) {\n            return x + y;\n        }\n\n    \/\/\u2462JDK9.0\u4ee5\u540e\uff0c\u63a5\u53e3\u4e2d\u53ef\u4ee5\u6709\u79c1\u6709\u65b9\u6cd5 \uff1a\n    private void own() {\n        System.out.println(\"\u8fd9\u662f?\u7684\u79c1\u6709\u65b9\u6cd5\u3002\");\n    }\n    public default void invoke_own() {\n        this.own();\n    }\n}\n\nclass Imple implements Demo2{\n    @Override\n    public void hello_world() {\n        System.out.println(\"\u4f60\u597d\uff0c\u4e16\u754c\uff01\");\n    }\n}\n\nclass Test2 {\n    public static void main(String[] args) {\n        Demo2 d2 = new Imple();\n        d2.hello_world();\n        System.out.println(\"---------------------------------\");\n        d2.what_time();\n        System.out.println(\"\u4f20\u5165\u7684x\u4e0ey\u7684\u548c = \" + Demo2.Sum(141, 135));\n        System.out.println(\"---------------------------------\");\n        d2.invoke_own();\n    }\n}<\/code><\/pre>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>\u8fd0\u884c\u7ed3\u679c<\/strong> :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"429\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350103131c9ce9.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"893\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"429\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350103131c9ce9.png\" width=\"893\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6ce8\u610f\u770b\u6211\u4eec\u5728Demo2\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u7b2c\u4e00\u4e2a\u62bd\u8c61\u7684\u65b9\u6cd5\uff0c \u5728IDEA\u4e2d\uff0c\u5b83\u662f\u4e0b\u9762\u8fd9\u6837\u5b50\u7684 :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"162\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011505096727.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"940\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"162\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011505096727.png\" width=\"940\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public \u548c abstract\u4fee\u9970\u7b26\u5747\u4e3a\u7070\u8272\uff0c\u518d\u4e00\u6b21\u8bf4\u660e\u63a5\u53e3\u4e2d\u7684\u65b9\u6cd5\u9ed8\u8ba4\u60c5\u51b5\u4e3a\u516c\u6709\u7684\u62bd\u8c61\u65b9\u6cd5\u3002\u5982\u679c\u60f3\u4f7f\u7528\u9ed8\u8ba4\u65b9\u6cd5\uff0c\u4e00\u5b9a\u4e0d\u8981\u5fd8\u8bb0\u6dfb\u52a0default\u5173\u952e\u5b57\u3002<\/p>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.%E6%8E%A5%E5%8F%A3%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 3.\u63a5\u53e3\u6784\u9020\u65b9\u6cd5\u7684\u7279\u70b9 :&nbsp;<\/h2>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u63a5\u53e3\u5b58\u5728\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u89c4\u8303\u7c7b\uff0c\u56e0\u6b64\u63a5\u53e3\u4e5f\u4e0d\u53ef\u4ee5\u88ab\u5b9e\u4f8b\u5316\u3002\u63a5\u53e3\u4e2d\u4e0d\u5141\u8bb8\u5b58\u5728\u4ee3\u7801\u5757\uff0c\u4e5f\u6ca1\u6709\u9700\u8981\u521d\u59cb\u5316\u7684\u6210\u5458\uff0c\u56e0\u6b64<span style=\"color:#956fe7;\"><strong>\u63a5\u53e3\u6ca1\u6709\u6784\u9020\u65b9\u6cd5\uff08\u6784\u9020\u5668\uff09<\/strong><\/span>\u3002\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u6784\u9020\u5668IDEA\u4f1a\u76f4\u63a5\u62a5\u9519\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"246\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011d9d9bf389.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"1131\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"246\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011d9d9bf389.png\" width=\"1131\"><\/noscript><\/p><\/blockquote>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%204.%E6%8E%A5%E5%8F%A3%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 4.\u63a5\u53e3\u521b\u5efa\u5bf9\u8c61\u7684\u7279\u70b9 :&nbsp;<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#0d0016;\"><strong><span style=\"background-color:#ffd900;\">\u2460\u63a5\u53e3\u4e0d\u80fd\u88ab\u5b9e\u4f8b\u5316 :<\/span><\/strong><\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u53ea\u80fd\u901a\u8fc7\u591a\u6001\u7684\u65b9\u5f0f\u5b9e\u4f8b\u5316\u201c\u5b50\u7c7b\u201d\u5bf9\u8c61\uff08\u8fd9\u91cc\u7684<strong>\u201c\u5b50\u7c7b\u201d\u6307\u7684\u662f\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b<\/strong>\uff09<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#0d0016;\"><strong><span style=\"background-color:#ffd900;\">\u2461\u63a5\u53e3\u7684\u5b50\u7c7b\uff08\u5b9e\u73b0\u7c7b) :&nbsp;<\/span><\/strong><\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>\u53ef\u4ee5\u662f\u62bd\u8c61\u7c7b\uff0c\u4e5f\u53ef\u4ee5\u662f\u666e\u901a\u7c7b<\/strong>\u3002<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#a2e043;\">\u5bf9\u4e8e\u62bd\u8c61\u5b9e\u73b0\u7c7b<\/span><\/strong>\uff0c\u53ef\u4ee5\u4e0d\u7528\u5b9e\u73b0\u63a5\u53e3\u7684\u6240\u6709\u65b9\u6cd5\uff0c\u56e0\u4e3a\u62bd\u8c61\u7c7b\u672c\u8eab\u5bb9\u8bb8\u5b58\u5728\u62bd\u8c61\u65b9\u6cd5\uff0c\u8bed\u6cd5\u4e0a\u662f\u901a\u8fc7\u7684\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#38d8f0;\">\u5bf9\u4e8e\u666e\u901a\u5b9e\u73b0\u7c7b<\/span><\/strong>\uff0c\u8981\u6c42\u5b9e\u73b0\u63a5\u53e3\u7684\u6240\u6709\u65b9\u6cd5\u3002<\/p><\/blockquote>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#956fe7;\"><strong>\u6f14\u793a :&nbsp;<\/strong><\/span><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6211\u4eec\u4ee5Demo3\u63a5\u53e3\u4e3a\u6f14\u793a\u63a5\u53e3\uff0c\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u4e09\u4e2a\u62bd\u8c61\u65b9\u6cd5greet(), exercise(), study()\uff1b\u4ee5Imple1\u7c7b\u548cImple2\u7c7b\u4f5c\u4e3aDemo2\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\uff0c<span style=\"background-color:#f9eda6;\">\u4ee4Imple1\u7c7b\u4e3a\u62bd\u8c61\u7c7b\uff0c\u4e0d\u5b9e\u73b0Demo3\u63a5\u53e3\u4e2d\u7684\u62bd\u8c61\u65b9\u6cd5\uff1b\u4ee4Imple2\u7c7b\u4e3a\u975e\u62bd\u8c61\u7c7b\uff0c\u5b9e\u73b0Demo3\u63a5\u53e3\u4e2d\u7684\u6240\u6709\u62bd\u8c61\u65b9\u6cd5<\/span>\u3002\u6700\u540e\u4ee5Test3\u7c7b\u4f5c\u4e3a\u6d4b\u8bd5\u7c7b\uff0c<strong>\u4ee3\u7801\u5982\u4e0b<\/strong> :&nbsp;<\/p>\n<pre><code class=\"language-java\">package knowledge.port.object;\n\npublic interface Demo3 {\n    public abstract void greet();\n    public abstract void exercise();\n    void study();   \/\/\u9ed8\u8ba4\u9690\u542bpublic abstract\u4fee\u9970\u7b26\n}\n\nabstract class Imple1 implements Demo3 {\n    \/\/\u5b9e\u73b0\u7c7bImple1\u7c7b\u662f\u62bd\u8c61\u7c7b\uff0c\u5141\u8bb8\u62e5\u6709\u62bd\u8c61\u65b9\u6cd5\uff0c\u56e0\u6b64\u53ef\u4ee5\u4e0d\u5b9e\u73b0\u63a5\u53e3\u4e2d\u7684\u65b9\u6cd5\u3002\n}\nclass Imple2 implements Demo3 {\n\n    @Override\n    public void greet() {\n        System.out.println(\"\u55e8\uff0c\u4f60\u597d\uff01\");\n    }\n\n    @Override\n    public void exercise() {\n        System.out.println(\"\u6587\u660e\u5176\u7cbe\u795e\uff0c\u91ce\u86ee\u5176\u4f53\u9b44\uff01\");\n    }\n\n    @Override\n    public void study() {\n        System.out.println(\"\u597d\u597d\u5b66\u4e60\uff0c\u5929\u5929\u5411\u4e0a\uff01\");\n    }\n}\n\nclass Test3 {\n    public static void main(String[] args) {\n        Demo3 d3 = new Imple2();\n        d3.greet();\n        d3.exercise();\n        d3.study();\n    }\n}<\/code><\/pre>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>\u8fd0\u884c\u7ed3\u679c<\/strong> :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"364\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/202307141350110303955f0.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"809\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"364\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/202307141350110303955f0.png\" width=\"809\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u8fd8\u8bb0\u5f97\u6211\u4eec\u8bb2\u8fc7\u7684alt + enter\u5feb\u6377\u952e\u5417\uff1f\u5047\u5982\u63a5\u53e3\u4e2d\u6709\u8bb8\u591a\u8bb8\u591a\u8bb8\u591a\u7684\u62bd\u8c61\u65b9\u6cd5\uff0c\u5982\u679c\u4f60\u8981\u4e00\u4e2a\u4e00\u4e2a\u5b9e\u73b0\u7684\u8bdd\u9ebb\u70e6\u7684\u4e00\u6279\uff0c\u8fd9\u65f6\u5019\u7528\u6211\u4eec\u7684\u5feb\u6377\u952e\u5c31\u4f1a\u65b9\u4fbf\u8bb8\u591a\uff0c\u5feb\u6377\u952e\u6f14\u793a\u5982\u4e0bGIF\u52a8\u56fe\uff1a<\/p>\n<p style=\"text-align:center;\"><img decoding=\"async\" class=\"lazyload\"alt=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/20230714135012767676338.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" alt=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/20230714135012767676338.gif\"><\/noscript><\/p>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%205.%E6%8E%A5%E5%8F%A3%E7%BB%A7%E6%89%BF%E5%85%B3%E7%B3%BB%E7%9A%84%E7%89%B9%E7%82%B9%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 5.\u63a5\u53e3\u7ee7\u627f\u5173\u7cfb\u7684\u7279\u70b9 :&nbsp;<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#ffd900;\">\u2460\u7c7b\u548c\u63a5\u53e3\u4e4b\u95f4\u7684\u5173\u7cfb :&nbsp;<\/span><\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u7c7b\u4e0e\u63a5\u53e3\u662f\u5b9e\u73b0\u5173\u7cfb\uff0c\u652f\u6301\u201c\u591a\u5b9e\u73b0\u201d\uff0c\u5373<span style=\"color:#956fe7;\"><strong>\u4e00\u4e2a\u7c7b\u53ef\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3<\/strong><\/span>\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#ffd900;\">\u2461\u63a5\u53e3\u4e0e\u63a5\u53e3\u4e4b\u95f4\u7684\u5173\u7cfb :&nbsp;<\/span><\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \u63a5\u53e3\u4e0e\u63a5\u53e3\u662f\u7ee7\u627f\u5173\u7cfb\uff0c<span style=\"color:#956fe7;\"><strong>java \u652f\u6301\u63a5\u53e3\u7684\u591a\u7ee7\u627f\uff0c\u5373\u4e00\u4e2a\u63a5\u53e3\u53ef\u4ee5\u540c\u65f6\u7ee7\u627f\u591a\u4e2a\u63a5\u53e3<\/strong><\/span>\uff0c\u683c\u5f0f\u5982\u4e0b&nbsp;:&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u63a5\u53e3 <span style=\"color:#4da8ee;\"><strong>extends <\/strong><\/span>\u63a5\u53e31\uff0c\u63a5\u53e32\uff0c\u63a5\u53e33...<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#ffd900;\">\u2462\u7ee7\u627f\u548c\u5b9e\u73b0\u7684\u533a\u522b \uff1a&nbsp;<\/span><\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#d4e9d5;\">\u7ee7\u627f\u4f53\u73b0\u7684\u662f\u201cis a\u201d\u7684\u5173\u7cfb\uff0c\u7236\u7c7b\u4e2d\u5b9a\u4e49\u5171\u6027\u5185\u5bb9\u3002<\/span><\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong><span style=\"background-color:#c7e6ea;\">\u5b9e\u73b0\u4f53\u73b0\u7684\u662f\u201clike a\u201d\u7684\u5173\u7cfb\uff0c\u7236\u63a5\u53e3\u4e2d\u5b9a\u4e49\u6269\u5c55\u5185\u5bb9\u3002<\/span><\/strong><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; PS : \u63a5\u53e3\u7684\u201c\u5b9e\u73b0\u201d\u53ef\u4ee5\u770b\u4f5c\u662fJava\u4e2d\u5bf9\u201c\u5355\u7ee7\u627f\u673a\u5236\u201d\u7684\u4e00\u4e2a\u8865\u5145\u5b8c\u5584\u3002\u63a5\u53e3\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u5b9e\u73b0\u4ee3\u7801\u89e3\u8026\uff08\u63a5\u53e3\u89c4\u8303\u6027 + \u52a8\u6001\u7ed1\u5b9a\uff09\u3002\u603b\u7684\u6765\u770b\uff0c<strong>\u63a5\u53e3\u6bd4\u7ee7\u627f\u66f4\u4e3a\u7075\u6d3b<\/strong>\u3002<\/p><\/blockquote>\n<h1 id=\"%E4%B8%89%E3%80%81%E5%BA%94%E7%94%A8%20%3A%C2%A0\">\u4e09\u3001\u5e94\u7528 :&nbsp;<\/h1>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.%E6%83%85%E6%99%AF%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 1.\u60c5\u666f :&nbsp;<\/h2>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; \u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u4e3a\u4e86\u66f4\u597d\u5730\u63a7\u5236\u548c\u7ba1\u7406\u9879\u76ee\uff0c\u9879\u76ee\u7ecf\u7406\u5f80\u5f80\u4f1a\u5b9a\u4e49\u4e00\u4e9b\u63a5\u53e3\uff0c\u5177\u4f53\u7684\u5b9e\u73b0\u7ec6\u8282\u7531\u5404\u4f4d\u7a0b\u5e8f?\u5b9e\u73b0\u3002?\u513f\u8fd9\u65f6\u5c31\u4f1a\u6839\u636e\u9700\u6c42\uff0c\u7f16\u5199\u4e0d\u540c\u7684\u7c7b\u53bb\u5b9e\u73b0\u9879\u76ee?\u7ed9\u7684\u63a5\u53e3\u3002\u5982\u4e0b\u56fe\u6240\u793a :&nbsp;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"450\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/202307141350124c4c24b44.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"783\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"450\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/202307141350124c4c24b44.png\" width=\"783\"><\/noscript><\/p>\n<\/blockquote>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u8fd9\u65f6\u5019\u53ef\u80fd\u5c31\u4f1a\u6709p\u5c0f\u5c06\uff08<span style=\"color:#38d8f0;\"><strong>personable\u5c0f\u5c06\uff0c\u6307\u98ce\u5ea6\u7fe9\u7fe9\u7684\u4eba<\/strong><\/span>\uff09\u51fa\u6765\u95ee\u4e86\uff0c\u76f4\u63a5\u8ba9?\u513f\u4eec\u53bb\u7f16\u5199\u7c7b\u4e0d\u4e45\u5b8c\u4e86\u5417\uff0c\u4e3a\u5565\u8fd8\u5f97\u9879\u76ee?\u4eb2\u81ea\u52a8\u624b\uff0c\u8fd9\u4e0d\u7eaf\u7eaf\u8131\u88e4\u5b50\u653e\u5c41\uff1f<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p\u5c0f\u5c06\u60a8\u5148\u522b\u6025\uff0c\u6211\u7ed9\u5927\u5bb6\u4e3e\u4e2a\u4f8b\u5b50\u5427\u2014\u2014<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8ba9\u4e09\u4e2a\u7a0b\u5e8f?\u53bb\u7f16\u5199\u7a0b\u5e8f\uff0c\u5206\u522b\u5efa\u7acb\u4e0eMysql\uff0cOracle\uff0c\u4ee5\u53caDB2\u6570\u636e\u5e93\u7684\u8fde\u63a5\uff0c\u8fd9\u65f6\uff0c\u5982\u679c\u9879\u76ee?\u6ca1\u6709\u5b9a\u4e49\u63a5\u53e3\uff0c\u800c\u662f\u76f4\u63a5\u8ba9?\u513f\u7f16\u5199\u5b9e\u73b0\u8fde\u63a5\u7684\u7c7b\u3002\u4e09\u4e2a?\u5bf9\u4e8e\u8fde\u63a5\u7684\u65b9\u6cd5\u53ef\u80fd\u547d\u540d\u4e3a\u4e86\u4e09\u79cd\u4e0d\u540c\u7684\u5f62\u5f0f\uff0c\u6bd4\u65b9\u8bf41\u53f7?\u5199\u5f97connect\uff0c2\u53f7?\u5199\u5f97join\uff0c3\u53f7?\u5199\u5f97link\u3002\u5982\u4e0b\u6240\u793a :&nbsp;<\/p>\n<pre><code class=\"language-java\">package knowledge.port.application;\n\npublic class ToDataBase {\n    public static void main(String[] args) {\n        SqlConnect mysql = new SqlConnect();\n        mysql.connect();\n\n        OracleConnect oracle = new OracleConnect();\n        oracle.join();\n\n        DB2Connect db2 = new DB2Connect();\n        db2.link();\n    }\n}\nclass SqlConnect {\n    public void connect() {\n        System.out.println(\"\u8fde\u63a5\u5230Mysql\u6570\u636e\u5e93\u3002\");\n    }\n}\nclass OracleConnect {\n    public void join() {\n        System.out.println(\"\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\u3002\");\n    }\n}\nclass DB2Connect {\n    public void link() {\n        System.out.println(\"\u8fde\u63a5\u5230DB2\u6570\u636e\u5e93\u3002\");\n    }\n}<\/code><\/pre>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>\u8fd0\u884c\u7ed3\u679c<\/strong> :&nbsp;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"318\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350137d7d4785f.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"700\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"318\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350137d7d4785f.png\" width=\"700\"><\/noscript><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9879\u76ee\u7ecf\u7406\u5982\u679c\u5c31\u8fd9b\u6837\u513f\u7ed9\u4e0a\u7ea7\u4ea4\u4e0a\u53bb\uff0c\u8981\u7ed9\u55b7\u70c2?\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u7531\u6b64\uff0c\u6211\u4eec\u770b\u5230<span style=\"color:#fe2c24;\">\u5f00\u53d1\u4e2d\u4f7f\u7528\u63a5\u53e3\u7684\u5fc5\u8981\u6027 :<\/span>&nbsp;<\/p>\n<blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; 1.\u65e0\u6cd5\u786e\u5b9a\u6bcf\u4e2a\u7a0b\u5e8f?\u5199\u5f97\u7c7b\u662f\u5426\u89c4\u8303\uff0c\u662f\u5426\u7b26\u5408\u8981\u6c42\uff0c\u65e0\u6cd5\u9884\u6d4b\u6700\u7ec8\u8f6f\u4ef6\u7684\u8d28\u91cf\u548c\u89c4\u8303\u3002\u4e5f\u65e0\u6cd5\u63a7\u5236\u8f6f\u4ef6\u6700\u7ec8\u7684\u529f\u80fd\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.\u63a5\u53e3\u6d89\u53ca\u4e86\u7edf\u4e00\u8c03\u7528\u7684\u95ee\u9898\uff0c\u5373\u63a5\u53e3\u7f16\u7a0b\u3002<\/p><\/blockquote>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#956fe7;\">\u89e3\u51b3\u65b9\u6848 :&nbsp;<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49ConnectInterface\u63a5\u53e3\uff0c&nbsp;\u5e76\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u62bd\u8c61\u65b9\u6cd5connect() \uff0c\u5e76\u8ba9?\u513f\u4eec\u53bb\u7f16\u5199\u7c7b\u5b9e\u73b0\u8fd9\u4e2a\u63a5\u53e3\uff0c\u7136\u540e\u5728\u8c03\u7528\u7c7b\u4e2d<span style=\"color:#fe2c24;\"><strong>\u5229\u7528\u591a\u6001\u53c2\u6570\uff0c\u4f7f\u63a5\u53e3\u4f5c\u4e3a\u5f62\u53c2<\/strong><\/span>\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong> ConnectInterface\u63a5\u53e3\u4ee3\u7801\u5982\u4e0b :&nbsp;<\/strong><\/p>\n<pre><code class=\"language-java\">package knowledge.port.application;\n\npublic interface ConnectInterface {    \/\/\u63a5\u53e3\u89c4\u5b9a\u4e86\u8fde\u63a5\u65b9\u6cd5\u5fc5\u987b\u662fconnect\n    public abstract void connect();\n}\n<\/code><\/pre>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>\u5b9e\u73b0\u7c7b\uff0c\u8c03\u7528\u7c7b\u4ee3\u7801\u5982\u4e0b :&nbsp;<\/strong><\/p>\n<pre><code class=\"language-java\">package knowledge.port.application;\n\npublic class ToDataBase {\n    public static void main(String[] args) {\n        SqlConnect mysql = new SqlConnect();\n        ToDataBase.connect(mysql);\n\n        OracleConnect oracle = new OracleConnect();\n        ToDataBase.connect(oracle);\n\n        DB2Connect db2 = new DB2Connect();\n        ToDataBase.connect(db2);\n    }\n    public static void connect(ConnectInterface connectInterface) {\n        connectInterface.connect();\n    }\n}\nclass SqlConnect implements ConnectInterface{\n    public void connect() {\n        System.out.println(\"\u8fde\u63a5\u5230Mysql\u6570\u636e\u5e93\u3002\");\n    }\n}\nclass OracleConnect implements ConnectInterface{\n    public void connect() {\n        System.out.println(\"\u8fde\u63a5\u5230Oracle\u6570\u636e\u5e93\u3002\");\n    }\n}\nclass DB2Connect implements ConnectInterface{\n    public void connect() {\n        System.out.println(\"\u8fde\u63a5\u5230DB2\u6570\u636e\u5e93\u3002\");\n    }\n}<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"324\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350139191a7e90.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"689\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"324\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350139191a7e90.png\" width=\"689\"><\/noscript><\/p>\n<h2 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%202.%E5%A4%9A%E6%80%81%20%3A%C2%A0\">&nbsp; &nbsp; &nbsp; &nbsp; 2.\u591a\u6001 :&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/h2>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5728\u4e0a\u6587\u4e2d\u6211\u4eec\u63d0\u5230\uff0c\u63a5\u53e3\u4e0d\u80fd\u88ab\u5b9e\u4f8b\u5316\uff0c\u800c\u662f\u901a\u8fc7\u591a\u6001\u7684\u65b9\u6cd5\u5b9e\u4f8b\u5316\u5b50\u7c7b\u5bf9\u8c61\u3002\u610f\u601d\u5c31\u662f\u8bf4\uff0c<span style=\"color:#956fe7;\"><strong>\u63a5\u53e3\u5f15\u7528\u6307\u5411\u5b50\u7c7b\u5bf9\u8c61\u4e5f\u662f\u591a\u6001\u7684\u4f53\u73b0<\/strong><\/span>\u3002&nbsp;\u5b9e\u9645\u4e0a\uff0c\u63a5\u53e3\u7684\u591a\u6001\u8981\u4ece\u4e24\u65b9\u9762\u8bf4\u8d77\u3002\u9996\u5148\u6211\u4eec\u6765\u8bf4\u8bf4\u63a5\u53e3\u591a\u6001\u7684\u4f20\u9012\u6027\u3002<\/p>\n<h3 id=\"%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%E2%91%A0%E5%A4%9A%E6%80%81%E7%9A%84%E4%BC%A0%E9%80%92%E6%80%A7%20%3A%C2%A0\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u2460\u591a\u6001\u7684\u4f20\u9012\u6027 :&nbsp;<\/h3>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color:#956fe7;\"><strong>\u591a\u6001\u7684\u4f20\u9012\u6027<\/strong><\/span>\uff0c\u6307\u7684\u662f\u2014\u2014<span style=\"color:#0d0016;\"><strong><span style=\"background-color:#f9eda6;\">\u5982\u679c\u4e00\u4e2a\u7c7b\u901a\u8fc7implements\u5173\u952e\u5b57\u5b9e\u73b0\u4e86\u67d0\u4e2a\u63a5\u53e3\uff0c\u800c\u8fd9\u4e2a\u63a5\u53e3\u6b64\u65f6\u53c8\u7ee7\u627f\u4e86\u53e6\u4e00\u4e2a\u63a5\u53e3\uff0c\u90a3\u4e48\u5c31\u76f8\u5f53\u4e86\u8fd9\u4e2a\u7c7b\u540c\u65f6\u5b9e\u73b0\u4e86\u8fd9\u4e24\u4e2a\u63a5\u53e3<\/span><\/strong><\/span>\u3002\u800c\u4e14\u53ef\u4ee5\u7528\u7236\u63a5\u53e3\u7684\u5f15\u7528\u6307\u5411\u5b9e\u73b0\u7c7b\u5bf9\u8c61\u3002<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6211\u4eec\u4ee5FatherInterface\u4e3a\u7236\u63a5\u53e3\uff0c\u5728\u7236\u63a5\u53e3\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u516c\u6709\u62bd\u8c61\u65b9\u6cd5f()\uff0cSonInterface\u4e3a\u5b50\u63a5\u53e3\uff0c<strong>Achieve\u7c7b\u4e3a\u5b50\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b<\/strong>\u3002\u4ee5Test\u7c7b\u4e3a\u6d4b\u8bd5\u7c7b\u3002<strong>\u4ee3\u7801\u5982\u4e0b<\/strong> :&nbsp;&nbsp; &nbsp;<\/p>\n<pre><code class=\"language-java\">package knowledge.port.application.deliver;\n\npublic interface FatherInterface {\n    public abstract void f();\n}\ninterface SonInterface extends FatherInterface {\n    \/\/\u5b50\u63a5\u53e3\u4e2d\u5565\u4e5f\u6ca1\u6709\uff0c\u4f46\u662f\u663e\u7136\u7ee7\u627f\u4e86\u7236\u63a5\u53e3\u4e2d\u7684\u516c\u6709\u62bd\u8c61\u65b9\u6cd5\u3002\n}\nclass Achieve implements SonInterface{\n    @Override\n    public void f() {\n        System.out.println(\"\u5b9e\u73b0\u7c7bAchieve\u5b9e\u73b0\u4e86\u5b50\u63a5\u53e3\u4e2d\u2014\u2014\u2014\u2014\u7ee7\u627f\u81ea\u7236\u63a5\u53e3\u7684\u62bd\u8c61\u65b9\u6cd5\u3002\");\n    }\n}\nclass Test {\n    public static void main(String[] args) {\n        \/\/\u53ef\u4ee5\u4f7f\u7528\u5b50\u63a5\u53e3\u5f15\u7528\u6307\u5411\u5b9e\u73b0\u7c7b\u7684\u591a\u6001\n        SonInterface sonInterface = new Achieve();\n        sonInterface.f();\n        \/\/\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7236\u63a5\u53e3\u5f15\u7528\u6307\u5411\u5b9e\u73b0\u7c7b\u7684\u591a\u6001\n        FatherInterface fatherInterface = new Achieve();\n        fatherInterface.f();\n    }\n}<\/code><\/pre>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>&nbsp; \u8fd0\u884c\u7ed3\u679c :&nbsp;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"348\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013f1f1ccbe1.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"1048\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"348\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013f1f1ccbe1.png\" width=\"1048\"><\/noscript><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6ce8\u610f\uff0c\u5982\u679c\u6b64\u65f6\u5b9e\u73b0\u7c7b\u4e2d\u6ca1\u6709\u5b9e\u73b0f() \u65b9\u6cd5\uff0cIDEA\u4f1a\u62a5\u9519\uff0c\u5982\u4e0b\u56fe\u6240\u793a :&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\"alt=\"\" height=\"395\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013ecec8a97d.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" width=\"1200\"><noscript><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"395\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013ecec8a97d.png\" width=\"1200\"><\/noscript>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5b50\u63a5\u53e3\u4e2d\u6ca1\u6709\u5b9a\u4e49\u62bd\u8c61\u65b9\u6cd5\uff0c\u4f46\u662f\u5b50\u63a5\u53e3\u7ee7\u627f\u4e86\u7236\u63a5\u53e3\uff0c\u4e5f\u5c31\u62e5\u6709\u4e86\u7236\u63a5\u53e3\u7684\u975e\u79c1\u6709\u65b9\u6cd5\u3002\u56e0\u6b64\u5b9e\u73b0\u7c7b\u5fc5\u987b\u5b9e\u73b0\u7236\u63a5\u53e3\u7684\u62bd\u8c61\u65b9\u6cd5\uff0c\u800c\u8fd9\u76f8\u5f53\u4e8e\u5b9e\u73b0\u7c7b\u4e5f\u5b9e\u73b0\u4e86\u7236\u63a5\u53e3\uff0c\u5373<strong>\u5b9e\u73b0\u7c7b\u540c\u65f6\u5b9e\u73b0\u4e86\u591a\u4e2a\u63a5\u53e3<\/strong>\u3002<\/p>\n<h3 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%E2%91%A1%E5%85%B3%E4%BA%8E%E6%8E%A5%E5%8F%A3%E7%9A%84%E5%A4%9A%E6%80%81%E5%8F%82%E6%95%B0%E5%92%8C%E5%A4%9A%E6%80%81%E6%95%B0%E7%BB%84%20%3A%C2%A0\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u2461\u5173\u4e8e\u63a5\u53e3\u7684\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4 :&nbsp;<\/h3>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5176\u6b21\uff0c\u5bf9\u4e8e\u6211\u4eec\u5728\u591a\u6001\u7bc7\u8bb2\u5230\u7684<a class=\"link-info\" href=\"https:\/\/blog.csdn.net\/TYRA9\/article\/details\/128920758?spm=1001.2014.3001.5501\" title=\"\u591a\u6001\u7684\u5e94\u7528\u2014\u2014\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4\" target=\"_blank\"  rel=\"nofollow\" >\u591a\u6001\u7684\u5e94\u7528\u2014\u2014\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4<\/a><strong><span style=\"background-color:#ffd900;\">\uff0c\u63a5\u53e3\u4e5f\u540c\u6837\u9002\u7528<\/span><\/strong>\uff01\u558f\uff0c\u4e0a\u9762\u54b1\u4eec\u4e3e\u7684\u9879\u76ee\u7ecf\u7406\u7684\u4f8b\u5b50\u5c31\u662f\u63a5\u53e3\u591a\u6001\u53c2\u6570\u7684\u4f53\u73b0\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5bf9\u4e8e\u63a5\u53e3\u7684\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4\uff0cup\u5c06\u5176<strong><span style=\"color:#0d0016;\"><span style=\"background-color:#fff5e6;\">\u5185\u5bb9\u8865\u5145\u5728\u4e86\u591a\u6001\u7684\u5e94\u7528\u2014\u2014\u591a\u6001\u53c2\u6570\u548c\u591a\u6001\u6570\u7ec4\u8be6\u89e3\u4e00\u6587\u4e2d<\/span><\/span><\/strong>\uff0c\u65b9\u4fbf\u5927\u5bb6\u5bf9\u6bd4\u8bb0\u5fc6\u548c\u7406\u89e3\u3002\u535a\u6587\u94fe\u63a5\u5982\u4e0b\uff1a&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a class=\"link-info has-card\" href=\"https:\/\/blog.csdn.net\/TYRA9\/article\/details\/128920758\" title=\"https:\/\/blog.csdn.net\/TYRA9\/article\/details\/128920758\" target=\"_blank\"  rel=\"nofollow\" ><span class=\"link-card-box\"><span class=\"link-title\">https:\/\/blog.csdn.net\/TYRA9\/article\/details\/128920758<\/span><span class=\"link-link\"><img decoding=\"async\" alt=\"\" class=\"link-link-icon lazyload\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-14\/202307141350143232c87dd.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" alt=\"\" class=\"link-link-icon\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-14\/202307141350143232c87dd.png\"><\/noscript>https:\/\/blog.csdn.net\/TYRA9\/article\/details\/128920758<\/span><\/span><\/a><\/p>\n<h1 id=\"%E5%9B%9B%E3%80%81%E6%80%BB%E7%BB%93%20%3A%C2%A0\">\u56db\u3001\u603b\u7ed3 :&nbsp;<\/h1>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ?\uff0c\u4ee5\u4e0a\u5c31\u662f\u5173\u4e8ejava \u63a5\u53e3 \u8be6\u89e3\u7684\u5168\u90e8\u5185\u5bb9\u4e86\u3002\u6211\u4eec\u91cd\u70b9\u4ecb\u7ecd\u4e86\u63a5\u53e3\u7684\u7279\u70b9\uff0c\u5176\u4e2d\u53c8\u5206\u4e3a\u4e86\u6210\u5458\u53d8\u91cf\uff0c\u6210\u5458\u65b9\u6cd5\uff0c\u6784\u9020\u65b9\u6cd5\uff0c\u521b\u5efa\u5bf9\u8c61\uff0c\u7ee7\u627f\u5173\u7cfb\u4e94\u90e8\u5206\u3002\u8fd9\u4e94\u90e8\u5206\u8981\u6c42\u5927\u5bb6\u5fc5\u987b\u638c\u63e1\uff0c\u81f3\u6b64\uff0c\u6211\u4eec\u7684\u9762\u5411\u5bf9\u8c61\u4e09\u5927\u7279\u6027\u4e4b\u591a\u6001\u7bc7\u6b63\u5f0f\u7ed3\u675f?\uff01<span style=\"color:#0d0016;\"><strong><span style=\"background-color:#38d8f0;\">\u611f\u8c22\u9605\u8bfb<\/span><\/strong><\/span>\uff01<\/p>\n<\/div>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eCSDN\uff1ahttps:\/\/blog.csdn.net\/TYRA9\/article\/details\/129174384<\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4e00\u3001\u6982\u8ff0 &nbsp; &nbsp; &nbsp; &nbsp; 1.\u4ecb\u7ecd :&nbsp; &nbsp; &nbsp; &#038;n &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2,7],"tags":[],"class_list":["post-2904","post","type-post","status-publish","format-standard","hentry","category-java","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350098e8e69251.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350096969f29a5.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-09\/202307141350096969f29a5.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/20230714135010929227d4e.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/20230714135010929227d4e.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350109191d4c57.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350109191d4c57.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350103131c9ce9.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-10\/202307141350103131c9ce9.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011505096727.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011505096727.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011d9d9bf389.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/20230714135011d9d9bf389.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/202307141350110303955f0.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-11\/202307141350110303955f0.png","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/20230714135012767676338.gif","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/20230714135012767676338.gif","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/202307141350124c4c24b44.png","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-12\/202307141350124c4c24b44.png","id":"image19"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350137d7d4785f.png","id":"image20"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350137d7d4785f.png","id":"image21"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350139191a7e90.png","id":"image22"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/202307141350139191a7e90.png","id":"image23"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013f1f1ccbe1.png","id":"image24"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013f1f1ccbe1.png","id":"image25"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013ecec8a97d.png","id":"image26"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-13\/20230714135013ecec8a97d.png","id":"image27"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-14\/202307141350143232c87dd.png","id":"image28"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/13-50-14\/202307141350143232c87dd.png","id":"image29"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Java","post_date":"2023-07-14","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":539,"next_post_id":2906,"next_post_title":"\u521b\u9020\u4e0e\u5e03\u5c40\uff1a\u5256\u6790 Java \u5bf9\u8c61\u521b\u5efa\u8fc7\u7a0b\u4ee5\u53ca\u5185\u5b58\u5e03\u5c40","previous_post_id":2900,"previous_post_title":"Java8\u65b0\u7279\u6027\u4e4bStream API\uff08\u542b\u5177\u4f53\u6848\u4f8b\uff09","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2904"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2904\/revisions"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}