<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mimimi0101</author_name>
  <author_url>https://blog.hatena.ne.jp/mimimi0101/</author_url>
  <blog_title>Hatena Notebook</blog_title>
  <blog_url>https://mamiline.hatenablog.com/</blog_url>
  <categories>
    <anon>関数</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>Java のコンストラクターの挙動を考えると、インスタンスごとに保有データが違うことは普通だが、 メソッドの扱いが、Java と JavaScript で違うことを一時整理する。 Java の場合 メソッドはインスタンスにコピーされない クラスから継承し、インスタンスから参照する JavaScript の場合 メソッドはインスタンスにコピーされない prototype から継承し、インスタンスから参照する 今回のコードの場合 メソッドは this.drive（オブジェクト）というプロパティ扱いとなり、インスタンスにコピー（this）される this.drive プロパティのため継承はされず、そ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmamiline.hatenablog.com%2Fentry%2Fjs-constructor&quot; title=&quot;Java と JavaScript のコンストラクター関数の違い - Hatena Notebook&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>2026-04-12 00:00:00</published>
  <title>Java と JavaScript のコンストラクター関数の違い</title>
  <type>rich</type>
  <url>https://mamiline.hatenablog.com/entry/js-constructor</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
