<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngsw_taro</author_name>
  <author_url>https://blog.hatena.ne.jp/ngsw_taro/</author_url>
  <blog_title>Kotlin Advent Calendar 2012 (全部俺)</blog_title>
  <blog_url>https://kotlin.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>アドベントカレンダー20日目です。アドベントカレンダーも残すところあとわずかです。言語の文法や機能の紹介は明日まで、という風な予定となっています。今日はデータクラスと多重宣言という機能について見て行きます。 データクラス 単純なプロパティしか持たないようなクラス、いわゆるデータクラスを定義するのにKotlinは持ってこいの文法を採用しています。と言うのは、例えば名前、価格というデータしか持たないクラス Product の定義は次のように簡潔に表現できるからです。 class Product(val name : String, val price : Int) これは見た目もシンプルですし、記…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkotlin.hatenablog.jp%2Fentry%2F2012%2F12%2F20%2F062403&quot; title=&quot;20日目：データクラスと多重宣言 - Kotlin Advent Calendar 2012 (全部俺)&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>http://cdn-ak.f.st-hatena.com/images/fotolife/n/ngsw_taro/20050408/20050408132103.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-20 06:24:03</published>
  <title>20日目：データクラスと多重宣言</title>
  <type>rich</type>
  <url>https://kotlin.hatenablog.jp/entry/2012/12/20/062403</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
