<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ikachii0607</author_name>
  <author_url>https://blog.hatena.ne.jp/ikachii0607/</author_url>
  <blog_title>初めてのC＃プログラミング学習</blog_title>
  <blog_url>https://ikachii0607.hatenablog.com/</blog_url>
  <categories>
    <anon>C＃学習</anon>
  </categories>
  <description>アップキャストとダウンキャスト（継承における型変換の仕組み） 1. キャストとは？ キャスト（型変換）とは、あるオブジェクトを別の型として扱うことです。C#では、継承関係にあるクラス間でキャストを行うことができます。 種類 方向 説明 アップキャスト 子 → 親 子クラスのインスタンスを親クラス型として扱う ダウンキャスト 親 → 子 親クラス型の変数を子クラス型として扱う 2. アップキャスト（子 → 親） class Animal { public void Speak() { Console.WriteLine(&quot;動物が鳴いています。&quot;); } } class Dog : Animal …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikachii0607.hatenablog.com%2Fentry%2F2025%2F10%2F19%2F202953&quot; title=&quot;アップキャストとダウンキャスト（継承における型変換の仕組み） - 初めてのC＃プログラミング学習&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>2025-10-19 20:29:53</published>
  <title>アップキャストとダウンキャスト（継承における型変換の仕組み）</title>
  <type>rich</type>
  <url>https://ikachii0607.hatenablog.com/entry/2025/10/19/202953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
