<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koisuru_com</author_name>
  <author_url>https://blog.hatena.ne.jp/koisuru_com/</author_url>
  <blog_title>❤恋するコンピュータサイエンス❤</blog_title>
  <blog_url>https://koisuru-computer.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Q. コピーコンストラクタと代入の違いを説明せよ。 A.コンストラクタには、コピーコンストラクタと言うコンストラクタがあり、コピーコンストラクタの書式は， クラス名 (const &amp;obj) のように定義する． 引数に同名の参照を指定します。コピーコンストラクタの仮引数は、自身のクラスの const参照か、非const参照とします。この引数は、コピー元のオブジェクトを参照するものです。コピー元を変更する必要はないので、const参照にするのが普通です。 コピーコンストラクタが登場するのは初期化の時です。 Class b = a; // a をコピーして b を作る 新しいオブジェクトが作られる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoisuru-computer.hateblo.jp%2Fentry%2F2023%2F01%2F07%2F111023&quot; title=&quot;コピーコンストラクタと代入演算子による初期化 - ❤恋するコンピュータサイエンス❤&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>2023-01-07 11:10:23</published>
  <title>コピーコンストラクタと代入演算子による初期化</title>
  <type>rich</type>
  <url>https://koisuru-computer.hateblo.jp/entry/2023/01/07/111023</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
