{"id":1434,"date":"2010-09-19T23:00:24","date_gmt":"2010-09-19T14:00:24","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=1434"},"modified":"2011-02-06T20:06:31","modified_gmt":"2011-02-06T11:06:31","slug":"%e3%83%97%e3%83%a9%e3%83%80%e3%81%ae%e9%9e%84%e3%82%92%e3%81%8a%e3%81%ad%e3%81%a0%e3%82%8a%e3%81%99%e3%82%8b%e3%81%ae%e3%81%8c%e5%8f%82%e7%85%a7","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/1434","title":{"rendered":"\u30d7\u30e9\u30c0\u306e\u9784\u3092\u304a\u306d\u3060\u308a\u3059\u308b\u306e\u304c\u53c2\u7167"},"content":{"rendered":"<p>\u30d7\u30e9\u30c0\u306e\u9784\u3092\u304a\u306d\u3060\u308a\u3059\u308b\u306e\u304c\u53c2\u7167<\/p>\n<p>\u30d7\u30e9\u30c0\u306e\u9784\u306e\u7d9a\u304d\u3067\u3059\u3002<br \/>\n\u5143\u30cd\u30bf\u306f\u3001\u6df1\u8aad\u307f\u306e\u3057\u904e\u304e\u3060\u3063\u305f\u8a33\u3067\u3059\u304c\u3001\u30cd\u30bf\u3068\u3057\u3066\u5f15\u304d\u7d9a\u304d\u3002<\/p>\n<p>\u30d7\u30e9\u30c0\u306e\u9784\u3092\u304a\u306d\u3060\u308a\u3059\u308b\u3068\u304d\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u306e\u3067\u3001\u66f8\u304d\u4e0a\u3052\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>\u25a0\u3053\u306e\u7bb1\u306b\u30d7\u30e9\u30c0\u306e\u9784\u3092\u5165\u308c\u3066\u30d1\u30bf\u30fc\u30f3<\/strong><\/p>\n<p>\uff1c001\uff1e<\/p>\n<p><a title=\"20100919_01\" href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2010\/09\/20100919_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2010\/09\/20100919_01.jpg\" title=\"20100919_01\" width=\"463\" height=\"361\" class=\"alignnone size-full wp-image-1435\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2010\/09\/20100919_01.jpg 463w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2010\/09\/20100919_01-300x233.jpg 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/a><\/p>\n<blockquote><p>\n\u00a0Prada *prada = NULL;<br \/>\n\u00a0Lewis.Onedari( &amp;prada );<\/p><\/blockquote>\n<p>\u3053\u306e prada \u30dd\u30a4\u30f3\u30bf\u306f\u3001\u30a2\u30ea\u30b9\u304c\u7528\u610f\u3059\u308b\u7bb1\u3067\u3059\u3002<br \/>\n\u30eb\u30a4\u30b9\u541b\u306b\u300c\u3053\u306e\u7bb1\u306b\u30d7\u30e9\u30c0\u306e\u9784\u3092\u5165\u308c\u3066\u306d\u300d\u3068\u304a\u9858\u3044\u3059\u308b\u308f\u3051\u3067\u3001\u5f8c\u3067\u7bb1\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b\u306e\u304c\u3001<\/p>\n<blockquote><p>\n\u00a0Prada *prada = NULL;<br \/>\n\u00a0Lewis.Onedari( &amp;prada );<br \/>\n\u00a0if ( prada == null ) {<br \/>\n\u00a0\u00a0\/\/ \u6fc0\u6012\u30c3!!!<br \/>\n\u00a0}<\/p><\/blockquote>\n<p>\u306a\u8a33\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u3053\u306e\u90e8\u5206\u3001\u30d7\u30e9\u30c0\u306e\u7bb1\u3092\u76f4\u63a5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306e\u304c\u300c\u30a2\u30ea\u30b9\u300d\u3002<br \/>\n\u30eb\u30a4\u30b9\u541b\u304c\u81ea\u5df1\u7533\u544a\uff08\u30d7\u30e9\u30c0\u306e\u9784\u3092\u5165\u308c\u305f\u304b\u3001\u3044\u308c\u306a\u304b\u3063\u305f\u304b\uff09\u3092\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u306f\u6b21\u306e\u66f8\u304d\u65b9\u3002<\/p>\n<blockquote><p>\n\u00a0Prada *prada = NULL;<br \/>\n\u00a0if ( Lewis.Onedari( &amp;prada ) != true ) {<br \/>\n\u00a0\u00a0\/\/ \u6fc0\u6012\u30c3!!!<br \/>\n\u00a0}<\/p><\/blockquote>\n<p>\u3053\u306e\u9055\u3044\u306f\u5927\u304d\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n<ul>\n<li>prada \u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306e\u304c\u3001\u30a2\u30ea\u30b9\u306e\u5834\u5408<\/li>\n<li>prada \u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306e\u304c\u3001\u30eb\u30a4\u30b9\u306e\u5834\u5408\uff08\u81ea\u5df1\u7533\u544a\uff09<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002<br \/>\n\u524d\u8005\u306e\u5834\u5408\u306f\u3001\u30eb\u30a4\u30b9\u306b\u8cac\u4efb\u306f\u3042\u308a\u307e\u305b\u3093\u3001\u3068\u3044\u3046\u304b\u30a2\u30ea\u30b9\u306f\u30eb\u30a4\u30b9\u306e\u632f\u308b\u821e\u3044\u306b\u7591\u3044\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5f8c\u8005\u306e\u5834\u5408\u306f\u3001\u30eb\u30a4\u30b9\u306e\u81ea\u5df1\u7533\u544a\u306a\u306e\u3067\u3001\u5b9f\u969b\u306f\u7bb1\u306e\u4e2d\u306b\u30d7\u30e9\u30c0\u306e\u9784\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u5206\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3048\u3048\u3001\u305d\u3046\u306a\u3093\u3067\u3059\u3002<br \/>\n\u30a2\u30ea\u30b9\u304c\u3001\u30eb\u30a4\u30b9\u306b\u5bfe\u3057\u3066\u3069\u308c\u3060\u3051\u7591\u3044\u3092\u6301\u3063\u3066\u3044\u308b\u304b\uff08\u3042\u308b\u3044\u306f\u4fe1\u3058\u3066\u3044\u308b\u304b\uff09\u306b\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u306f\u7591\u3044\u6df1\u3044\u306e\u3067\uff57\u3001\u5f8c\u8005\u306e\u5834\u5408\u3067\u3082<\/p>\n<blockquote><p>\n\u00a0Prada *prada = NULL;<br \/>\n\u00a0if ( Lewis.Onedari( &amp;prada ) != true ) {<br \/>\n\u00a0\u00a0\/\/ \u6fc0\u6012\u30c3!!!<br \/>\n\u00a0}<br \/>\n\u00a0if ( prada == null ) {<br \/>\n\u00a0\u00a0\/\/ \u6fc0\u6012\u30c3!!!<br \/>\n\u00a0}<\/p><\/blockquote>\n<p>\u306a\u3053\u3068\u3092\u3084\u308a\u307e\u3059\u306d\uff57<\/p>\n<p><strong>\u25a0\u30d7\u30e9\u30c0\u306e\u7bb1\u3054\u3068\u9802\u6234\u306d\u30d1\u30bf\u30fc\u30f3<\/strong><\/p>\n<p>\u5148\u306e\u30a2\u30ea\u30b9\u306f\u3001\u3054\u4e01\u5be7\u306b\u30d7\u30e9\u30c0\u306e\u7bb1\u306b\u9784\u3092\u5165\u308c\u3066\u304f\u308c\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u307e\u3057\u305f\u304c\u3001\u30d7\u30e9\u30c0\u306e\u7bb1\u3054\u3068\u3082\u3089\u3046\u30d1\u30bf\u30fc\u30f3\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>\n\u00a0Prada *prada = Lewis.Onedari();<\/p><\/blockquote>\n<p>\u30eb\u30a4\u30b9\u306b\u304a\u306d\u3060\u308a\u3092\u3059\u308b\u3068\u3001\u30d7\u30e9\u30c0\u3092\u7bb1\u3054\u3068\u304f\u308c\u307e\u3059\u306d\u3002<br \/>\n# \u300c\u7bb1\u300d\u3063\u3066\u306e\u306f\u30dd\u30a4\u30f3\u30bf\u306a\u306e\u304b\u3001\u30e1\u30e2\u30ea\u306a\u306e\u304b\u3001\u3063\u3066\u306e\u304c\u3042\u308a\u307e\u3059\u3051\u3069\u3001\u3053\u306e\u5834\u5408\u306f\u30e1\u30e2\u30ea\u3063\u3066\u3053\u3068\u3067\u3002<\/p>\n<p>\u3053\u308c\u3088\u304f\u898b\u308b\u3068 Factory Pattern \u3067\u3059\u3088\u306d\u3002Lewis \u304c\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u3067\u3001Ondeari \u304c Create \u30e1\u30bd\u30c3\u30c9\u3063\u3066\u8a33\u3067\u3059\u3002<br \/>\nJava \u306e\u5834\u5408\u306f\u3001\u3053\u306e\u30d5\u30a1\u30af\u30c8\u30ea\u30d1\u30bf\u30fc\u30f3\u304c\u591a\u304f\u3063\u3066\u3001C++\u306e\u4e16\u754c\u3067\u306f\u3001new\u6f14\u7b97\u5b50\u304c\u591a\u3044\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u6bd4\u8f03\u306f\u6b63\u78ba\u3067\u306f\u306a\u304f\u3066\u3001<\/p>\n<ul>\n<li>Factory.Create \u306e\u5834\u5408\u306f\u3001\u30d5\u30a1\u30af\u30c8\u30ea\u30af\u30e9\u30b9\u306b\u3088\u308a Create \u3092\u5236\u5fa1\u3067\u304d\u308b\u3002<\/li>\n<li>new \u6f14\u7b97\u5b50\u306e\u5834\u5408\u306f\u3001\u53d6\u5f97\u3059\u308b\u30af\u30e9\u30b9\u305d\u306e\u3082\u306e\u3060\u3051\u306b\u306a\u308b\u3002<\/li>\n<\/ul>\n<p>\u3063\u3066\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001<\/p>\n<blockquote><p>\n\u00a0Prada *prada1 = Lewis.Onedari();<br \/>\n\u00a0Prada *prada2 = Nabokov.Onedari();<\/p><\/blockquote>\n<p>\u306a\u3068\u3053\u308d\u3067\u3001\u30eb\u30a4\u30b9\u3068\u30ca\u30dc\u30b3\u30d5\u306b\u304a\u306d\u3060\u308a\u3092\u3059\u308b\u3068\u3001\u304f\u308c\u308b\u306e\u306f\u540c\u3058\u30d7\u30e9\u30c0\u3067\u3042\u3063\u3066\u3082\u3001\u5225\u306e\u3082\u306e\u3067\u3059\uff08\u3042\u308b\u3044\u306f\u30d7\u30e9\u30c0\u3067\u3059\u3089\u306a\u304b\u3063\u305f\u308a\uff57\uff09\u3002<\/p>\n<p>new \u6f14\u7b97\u5b50\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001<\/p>\n<blockquote><p>\n\u00a0Prada *prada = new Prada();<\/p><\/blockquote>\n<p>\u306b\u306a\u308b\u306e\u3067\u3001\u304a\u306d\u3060\u308a\u3092\u3059\u308b\u3068\u3044\u3046\u3088\u308a\u3082\u3001\u30d7\u30e9\u30c0\u5de5\u5834\u304b\u3089\u76f4\u63a5\u8cfc\u5165\u3063\u3066\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001<\/p>\n<p>\u30d7\u30e9\u30c0\u306e\u9784\u306e\u5229\u7528\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u4ef6\uff08\u59d4\u8b72\uff09\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u307e\u305f\u5f8c\u65e5\u3068\u3044\u3046\u3053\u3068\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30e9\u30c0\u306e\u9784\u3092\u304a\u306d\u3060\u308a\u3059\u308b\u306e\u304c\u53c2\u7167 \u30d7\u30e9\u30c0\u306e\u9784\u306e\u7d9a\u304d\u3067\u3059\u3002 \u5143\u30cd\u30bf\u306f\u3001\u6df1\u8aad\u307f\u306e\u3057\u904e\u304e\u3060\u3063\u305f\u8a33\u3067\u3059\u304c\u3001\u30cd\u30bf\u3068\u3057\u3066\u5f15\u304d\u7d9a\u304d\u3002 \u30d7\u30e9\u30c0\u306e\u9784\u3092\u304a\u306d\u3060\u308a\u3059\u308b\u3068\u304d\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u306e\u3067\u3001\u66f8\u304d\u4e0a\u3052\u3066\u307f\u307e\u3059\u3002 \u25a0\u3053\u306e\u7bb1\u306b\u30d7\u30e9\u30c0\u306e &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/1434\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,22],"tags":[],"class_list":["post-1434","post","type-post","status-publish","format-standard","hentry","category-dev","category-c"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=1434"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"predecessor-version":[{"id":1437,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions\/1437"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}