{"id":1361,"date":"2014-11-21T18:15:10","date_gmt":"2014-11-21T09:15:10","guid":{"rendered":"https:\/\/www.jaswill.co.jp\/blog\/2014\/11\/21\/_template_method\/"},"modified":"2014-11-21T18:15:10","modified_gmt":"2014-11-21T09:15:10","slug":"_template_method","status":"publish","type":"post","link":"https:\/\/www.jaswill.co.jp\/blog\/2014\/11\/21\/_template_method\/","title":{"rendered":"\u7b2c\uff13\u56de Template Method\u30d1\u30bf\u30fc\u30f3"},"content":{"rendered":"<p>\u304a\u75b2\u308c\u69d8\u3067\u3059\u3002\u307d\u3093\u3058\u308a\u3067\u3059\u3002<br \/>\n\u6700\u8fd1\u5bd2\u304f\u3066\u671d\u8d77\u304d\u308b\u306e\u304c\u3064\u3089\u3044\u3067\u3059\u3002<br \/>\nTemplate Method\u30d1\u30bf\u30fc\u30f3<br \/>\n\u3044\u3064\u3082\u901a\u308a\u767b\u5834\u4eba\u7269\u306e\u7d39\u4ecb\u3067\u3059\u3002<br \/>\n\u25a0AbstractClass\uff08\u62bd\u8c61\u30af\u30e9\u30b9\uff09\u306e\u5f79<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3002\u305d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b<br \/>\n\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3092\u5ba3\u8a00\u3059\u308b\u3002<br \/>\n\u25a0ConcreteClass\uff08\u5177\u8c61\u30af\u30e9\u30b9\uff09\u306e\u5f79<br \/>\nAbstractClass\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3092\u5177\u4f53\u7684\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<br \/>\n\u25cb\u5229\u70b9<br \/>\n\u30ed\u30b8\u30c3\u30af\u3092\u5171\u901a\u5316\u3067\u304d\u308b\u3002<br \/>\n\u30fb\u30fb\u30fbAbstractClass\u306b\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u4f55\u304b\u30d0\u30b0\u304c\u898b\u3064\u304b\u3063\u305f\u3068\u304d\u306b<br \/>\n\u3000\u3000\u3000\u4fee\u6b63\u304c\u697d\u3002\u540c\u3058\u3088\u3046\u306a\u52d5\u304d\u306e\u30af\u30e9\u30b9\u306b\u305d\u308c\u305e\u308c\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u5168\u3066<br \/>\n\u3000\u3000\u3000\u76f4\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304c\u3001Template Method\u3092\u7528\u3044\u3066\u3044\u308c\u3070AbstractClass\u3092<br \/>\n\u3000\u3000\u3000\u4fee\u6b63\u3059\u308b\u3060\u3051\u3067\u3088\u3044\u3002<br \/>\n\u203bThe Liskov Substitution Principle(LSP)<br \/>\n\u3000\u3000\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u5909\u6570\u306b\u30b5\u30d6\u30af\u30e9\u30b9\u306e\u3069\u306e\u3088\u3046\u306a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4ee3\u5165\u3057\u3066\u3082<br \/>\n\u3000\u3000\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n\u25cb\u6c17\u3092\u4ed8\u3051\u308b\u70b9<br \/>\n\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u3067\u306e\u8a18\u8ff0\u3092\u591a\u304f\u3059\u308b\u3068\u30b5\u30d6\u30af\u30e9\u30b9\u306e\u8a18\u8ff0\u304c\u697d\u306b\u306a\u308b\u53cd\u9762\u3001<br \/>\n\u30b5\u30d6\u30af\u30e9\u30b9\u306e\u81ea\u7531\u5ea6\u306f\u6e1b\u3063\u3066\u3057\u307e\u3046\u3002<br \/>\n\u9006\u306b\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u3067\u306e\u8a18\u8ff0\u304c\u5c11\u306a\u3044\u3068\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u306e\u8a18\u8ff0\u304c\u5897\u3048\u3001<br \/>\n\u500b\u3005\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u51e6\u7406\u306e\u8a18\u8ff0\u304c\u91cd\u8907\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<br \/>\n\u4eca\u56de\u306f\u307b\u3068\u3093\u3069\u30e1\u30e2\u66f8\u304d\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u6c4e\u7528\u6027\u304c\u9ad8\u305d\u3046\u306a\u306e\u3067\u91cd\u8981\u3067\u3059\u306d\uff01<br \/>\n\u3067\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u75b2\u308c\u69d8\u3067\u3059\u3002\u307d\u3093\u3058\u308a\u3067\u3059\u3002 \u6700\u8fd1\u5bd2\u304f\u3066\u671d\u8d77\u304d\u308b\u306e\u304c\u3064\u3089\u3044\u3067\u3059\u3002 Template Method\u30d1\u30bf\u30fc\u30f3 \u3044\u3064\u3082\u901a\u308a\u767b\u5834\u4eba\u7269\u306e\u7d39\u4ecb\u3067\u3059\u3002 \u25a0AbstractClass\uff08\u62bd\u8c61\u30af\u30e9\u30b9\uff09\u306e\u5f79 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3002\u305d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b \u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3092\u5ba3\u8a00\u3059\u308b\u3002 \u25a0Conc [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[400],"class_list":["post-1361","post","type-post","status-publish","format-standard","hentry","category-web","tag-template-method"],"views":7,"_links":{"self":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=1361"}],"version-history":[{"count":0,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1361\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=1361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=1361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=1361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}