<?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>一昨日はクラスの話をしました。クラスは、そのメンバとして関数とプロパティを持つことができます。今日はプロパティについてお話ししたいと思います。 まずはJavaの慣例のおさらい Javaではpublicなフィールドを避けるべきであるとされています。メソッド呼び出しのオーバヘッドが無視できない状況を除けば、すべてのフィールドをprivateにし、publicなメソッドを介してフィールドにアクセスすべきです。フィールドを非公開にすることによって適切にオブジェクトはカプセル化されます。 しかし、setterやgetterの呼び出しはもちろんのこと、クラスに逐一定義していくのは非常に退屈で面倒な作業です…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkotlin.hatenablog.jp%2Fentry%2F2012%2F12%2F13%2F231343&quot; title=&quot;13日目：プロパティとフィールド - 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/20121210/20121210222426.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-13 23:13:43</published>
  <title>13日目：プロパティとフィールド</title>
  <type>rich</type>
  <url>https://kotlin.hatenablog.jp/entry/2012/12/13/231343</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
