<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>totofuga</author_name>
  <author_url>https://blog.hatena.ne.jp/totofuga/</author_url>
  <blog_title>totofugaのブログ</blog_title>
  <blog_url>https://totofuga.hateblo.jp/</blog_url>
  <categories>
    <anon>設計</anon>
  </categories>
  <description>結城さんのJava言語で学ぶデザインパターン入門を読んでみたけど、 Visitorパターンが理解できなかったので少し調べて自分なりにまとめてみた。 Visitorパターンが解決してくれる場面 Interface 動物 { 走る(); 食べる(); } Class 犬 : 動物 { 走る(); 食べる(); } class 猫 : 動物 { 走る(); 食べる(); } というクラスと function 行動 ( 動物 pet ) { pet.走る() pet.食べる() } という動物Classを使用する関数があったとする。 この場合新しく動物を追加する場合は class 虎 : PARENT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotofuga.hateblo.jp%2Fentry%2F2014%2F02%2F03%2F222909&quot; title=&quot;Visitorパターン（デザインパターン） - totofugaのブログ&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>2014-02-03 22:29:09</published>
  <title>Visitorパターン（デザインパターン）</title>
  <type>rich</type>
  <url>https://totofuga.hateblo.jp/entry/2014/02/03/222909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
