<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ruby-U</author_name>
  <author_url>https://blog.hatena.ne.jp/ruby-U/</author_url>
  <blog_title>rubyu's blog</blog_title>
  <blog_url>https://rubyu.hatenablog.com/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>継承したい オーバーライドしたい 親のコンストラクタは暗黙に実行したい という用途でいろいろと試してみたがいいものがなかったので適当に書いた var C1 = newClass({ initialize: function(){ this.value1 = &quot;foo&quot;; }, getValue1: function(){ return this.value1; } }); で var C2 = extend(C1, { initialize: function(){ this.value2 = &quot;bar&quot;; }, getValue1: function(){ return &quot;[&quot; + this…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyu.hatenablog.com%2Fentry%2F20081208%2F1228739276&quot; title=&quot;クラスの継承、オーバーライド - rubyu&amp;#39;s blog&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>2008-12-08 21:27:56</published>
  <title>クラスの継承、オーバーライド</title>
  <type>rich</type>
  <url>https://rubyu.hatenablog.com/entry/20081208/1228739276</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
