<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n-trino</author_name>
  <author_url>https://blog.hatena.ne.jp/n-trino/</author_url>
  <blog_title>trinoの走り書き</blog_title>
  <blog_url>https://n-trino.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>普通、オブジェクトとかはnew演算子で作ります。 class Object { //あんなものやこんなものがあったりする。 }; Object* p = new Object; しかし、いろいろあって外で作らないで専用の工場を設けてそいつに作らせるということもよくあります。 Object* p = pFactory-&gt;make(); こいつの利点として、作る際にいろいろ中で登録したりして工場内で今後も管理できたりします。 そうなると今後は逆に、工場の外で勝手に作られては困ってくる場合があります。もちろん、その場合は外で作らないように気をつけて書けばいいことなのですが、まあ、それでも間違って作っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn-trino.hatenadiary.org%2Fentry%2F20050113%2Fp1&quot; title=&quot;オブジェ工場 - trinoの走り書き&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-01-13 00:00:01</published>
  <title>オブジェ工場</title>
  <type>rich</type>
  <url>https://n-trino.hatenadiary.org/entry/20050113/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
