<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PX-WING</author_name>
  <author_url>https://blog.hatena.ne.jp/PX-WING/</author_url>
  <blog_title>フリーランス　技術調査ブログ</blog_title>
  <blog_url>https://px-wing.hatenablog.com/</blog_url>
  <categories>
    <anon>kotlin</anon>
  </categories>
  <description>データクラス オブジェクト指向で、処理を持たないデータだけを保持するクラス​を利用したいことがある場合、データクラス​を定義する。データクラスはclassの前に「​data​」というキーワードをつけて定義する データクラスを定義する際には以下の条件を満たす必要がある 1.プライマリコンストラクタが一つ以上の引数を持つ 2.コンストラクタの引数はすべてvar/valを付与してプロパティの宣言とする 3.abstract / open / sealed / innerにすることはできない data class User (var lastName: String, var firstName: S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpx-wing.hatenablog.com%2Fentry%2F2021%2F02%2F26%2F065516&quot; title=&quot;kotlin覚えたメモ⑥（データクラス） - フリーランス　技術調査ブログ&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>2021-02-26 06:55:16</published>
  <title>kotlin覚えたメモ⑥（データクラス）</title>
  <type>rich</type>
  <url>https://px-wing.hatenablog.com/entry/2021/02/26/065516</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
