<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshikit1996</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshikit1996/</author_url>
  <blog_title>yoshikit1996’s diary</blog_title>
  <blog_url>https://yoshikit1996.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>クラスパラメータ クラス名の直後に書くコンストラクタを基本コンストラクタと呼び，基本コンストラクタの引数をクラスパラメータという． class Rational(n: Int, d: Int) 事前条件チェック requireを使うと，引数に渡される値に制限を設けることができる． class Rational(n: Int, d: Int){ require(d != 0) override def toString = n + &quot;/&quot; + d } クラスにおけるvar, valの可視性 class Num(n: Int) // private class Num(val n: Int) //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshikit1996.hatenablog.com%2Fentry%2F2019%2F01%2F27%2F192746&quot; title=&quot;Scalaスケーラブルプログラミング読書メモ２ - yoshikit1996’s diary&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>2019-01-27 19:27:46</published>
  <title>Scalaスケーラブルプログラミング読書メモ２</title>
  <type>rich</type>
  <url>https://yoshikit1996.hatenablog.com/entry/2019/01/27/192746</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
