<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kenta11626918</author_name>
  <author_url>https://blog.hatena.ne.jp/kenta11626918/</author_url>
  <blog_title>Set::prototype</blog_title>
  <blog_url>https://kenta11626918.hatenadiary.org/</blog_url>
  <categories>
    <anon>クラス</anon>
    <anon>C++</anon>
    <anon>文法の基本</anon>
  </categories>
  <description>アップキャスト キャストする時、派生クラスのオブジェクトは基底クラスへの参照に渡すことができる。 継承木の上の方にあるクラスへのキャストなので、アップキャストという。 protectedアクセス指定子 protected:指定すると、それ以降のメンバは、外部には公開されないが、 派生クラスには公開される。 仮想関数 クラス定義内でvirtualを宣言の前につけると、 基底クラスの関数や、参照、ポインタを通しても、その本来の方によって、適切に呼び分けられる。 デコンストラクタの時はvirtualをつけておくべき。 2011.3.29追記 仮想関数の宣言virtualはprivate内では使えない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenta11626918.hatenadiary.org%2Fentry%2F20110328%2F1301301349&quot; title=&quot;クラスについて。 - Set::prototype&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>2011-03-28 17:35:49</published>
  <title>クラスについて。</title>
  <type>rich</type>
  <url>https://kenta11626918.hatenadiary.org/entry/20110328/1301301349</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
