<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bibinbaleo</author_name>
  <author_url>https://blog.hatena.ne.jp/bibinbaleo/</author_url>
  <blog_title>トマシープが学ぶ</blog_title>
  <blog_url>https://bibinbaleo.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>前回の続き。11章、継承 bibinbaleo.hatenablog.com 継承 何かのクラスをもとに似たようなクラスを作るとき、コピペでクラスを作ったら、元のクラスに変更があったときに、どちらも変更しないといけない。 また同じようなコードばかりだと見通しが悪い。 メンテナンスしにくい そこで元のクラスを継承したクラスを書く 書き方 public class クラス名 extends 元となるクラス{ 追加するフィールド 追加するメソッド } HeroクラスをもとにSuperHeroクラスだけに追加するものを書けばいい 子クラスに書いてなくて親クラスに書いてあるメソッドも、子クラスのインスタ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbibinbaleo.hatenablog.com%2Fentry%2F2019%2F06%2F03%2F164512&quot; title=&quot;すっきりわかるJava入門を読む④（11章継承） - トマシープが学ぶ&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>https://images-fe.ssl-images-amazon.com/images/I/51p6dqvB3lL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-03 16:45:12</published>
  <title>すっきりわかるJava入門を読む④（11章継承）</title>
  <type>rich</type>
  <url>https://bibinbaleo.hatenablog.com/entry/2019/06/03/164512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
