{"id":4773,"date":"2016-10-18T10:00:55","date_gmt":"2016-10-18T01:00:55","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=4773"},"modified":"2016-10-17T22:11:40","modified_gmt":"2016-10-17T13:11:40","slug":"%e6%96%b0%e4%ba%ba%e6%88%90%e9%95%b7%e8%a8%98%e9%8c%b210th","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/4773","title":{"rendered":"\u65b0\u4eba\u6210\u9577\u8a18\u933210th"},"content":{"rendered":"<p>Fragment\u306e\u30a4\u30d9\u30f3\u30c8\u3092Activity\u3067\u53d7\u3051\u53d6\u308b\u306e\u306binterface\u3068implements\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u7fd2\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f<br \/>\n\u305d\u3053\u3067\u3001\u5b66\u7fd2\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u4eca\u56de\u3067\u306f\u3001interface\u3068implements\u3068\u306f\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u304b\u3092\u8a18\u8ff0\u3057\u307e\u3059<br \/>\n\u305d\u308c\u305e\u308c\u306e\u95a2\u4fc2\u6027\u3092\u7c21\u5358\u306b\u8aac\u660e\u3059\u308b\u3068\u3001interface\u3067\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u3092\u884c\u3044\u3001implements\u306b\u3066class\u306b\u5b9f\u88c5\u3057\u307e\u3059<\/p>\n<p>\u6b21\u56de\u306b\u3001Fragmnet\u306e\u30a4\u30d9\u30f3\u30c8\u3092Activity\u3067\u53d7\u3051\u53d6\u308b\u5185\u5bb9\u306b\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<p><!--more--><\/p>\n<h3>interface\u3068\u306f<\/h3>\n<p>\u3042\u308b\u30af\u30e9\u30b9\u306b\u304a\u3044\u3066\u5b9f\u73fe\u3059\u308b\u3079\u304d\u30e1\u30bd\u30c3\u30c9\u306e\u540d\u524d\u3084\u578b\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u3082\u306e\u3067\u3059<br \/>\n\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306ainterface\u304c\u3042\u308b\u3068\u3057\u307e\u3059<br \/>\n<code><\/code><\/p>\n<pre>interface calc {\r\n\t\/\/\u5947\u6570\u306e\u30c1\u30a7\u30c3\u30af\r\n\tboolean checkOdd(int num);\r\n\r\n\t\/\/\u5f15\u6570\u30922\u500d\r\n\tint twice(int num);\r\n}\r\n<\/pre>\n<p>\u3053\u306einterface\u3092\u5b9f\u88c5(implements)\u3057\u305fclass\u306f2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093<br \/>\ninterface\u306f\u5b9f\u88c5\u8005\u306b\u660e\u78ba\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<br \/>\n\u3057\u304b\u3057\u3001\u305d\u306e\u5f37\u5236\u529b\u304b\u3089\u672c\u5f53\u306b\u5fc5\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u306e\u307f\u3092\u5b9a\u7fa9\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u3044\u307e\u3057\u305f<\/p>\n<h3>implements\u3068\u306f<\/h3>\n<p>interface\u306e\u5b9f\u88c5\u306b\u4f7f\u7528\u3057\u307e\u3059<br \/>\nextends\u3067\u306e\u7d99\u627f\u306f1\u3064\u307e\u3067\u3068\u306a\u308a\u3001java\u3067\u306e\u591a\u91cd\u7d99\u627f\u306f\u8a31\u3055\u308c\u3066\u3044\u307e\u305b\u3093<br \/>\n\u3057\u304b\u3057\u3001implements\u3067\u306f\u8907\u6570\u306e\u5b9f\u88c5\u304c\u53ef\u80fd\u3067\u3059<br \/>\n\u5148\u307b\u3069\u306einterface\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<br \/>\n<code><\/code><\/p>\n<pre>public class practice implements  calc{\r\n\r\n\t@Override\r\n\tpublic boolean checkOdd(int num) {\r\n\t\tif(sum % 2 == 1){\r\n         \t   return true;\r\n        \t}else{\r\n          \t   return false;\r\n        \t}\r\n\t}\r\n\r\n\t@Override\r\n\tpublic int twice(int num) {\r\n\t\treturn sum * 2;\r\n\t}\r\n}\r\n<\/pre>\n<p>interface\u3092\u5b9f\u88c5\u3059\u308b\u6642\u306b\u306f\u3001\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u306a\u3044\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>1\u5ea6\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3068\u3001interface\u306f\u5909\u66f4\u304c\u3068\u3066\u3082\u56f0\u96e3\u3067\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u306b\u3001\u8a2d\u8a08\u306e\u6642\u70b9\u3067\u5341\u5206\u306b\u4ed5\u69d8\u3092\u8a70\u3081\u3066\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<br \/>\n\u4eca\u56de\u306e\u5b66\u7fd2\u3067\u306f\u3001\u6bd4\u8f03\u7684\u7c21\u5358\u306ainterface\u3092\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1apoppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4773\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/4773\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u6210\u9577\u8a18\u933210th\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4773\" data-text=\"\u65b0\u4eba\u6210\u9577\u8a18\u933210th\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4773\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4773\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Fragment\u306e\u30a4\u30d9\u30f3\u30c8\u3092Activity\u3067\u53d7\u3051\u53d6\u308b\u306e\u306binterface\u3068implements\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u7fd2\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f \u305d\u3053\u3067\u3001\u5b66\u7fd2\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059 \u4eca\u56de\u3067\u306f\u3001interface\u3068impl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[56,79],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4773"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=4773"}],"version-history":[{"count":18,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4773\/revisions"}],"predecessor-version":[{"id":4817,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4773\/revisions\/4817"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=4773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=4773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=4773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}