<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>diningyo-kpuku-jougeki</author_name>
  <author_url>https://blog.hatena.ne.jp/diningyo-kpuku-jougeki/</author_url>
  <blog_title>ハードウェアの気になるあれこれ</blog_title>
  <blog_url>https://tech-diningyo.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>今日はクラスの章を。 クラス クラス定義 メソッド定義 複数の引数リストを持つメソッド フィールド定義 抽象メンバー 継承 練習問題 クラス クラス定義 記法を除けばJavaのクラスと同等らしい。（Javaはよくわかってない） 構文は以下の通り。 class &lt;クラス名&gt; '(' (&lt;引数名1&gt; : &lt;引数型1&gt;, &lt;引数名2&gt;: &lt;引数型2&gt; ...)? ')' { (&lt;フィールド定義&gt; | &lt;メソッド定義&gt; )* } 例えば点を示すクラスPointはScalaでは以下のようになる。 class Point(_x: Int, _y: Int) { val x = _x val y = _y …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-diningyo.hatenablog.com%2Fentry%2F2018%2F09%2F09%2F172324&quot; title=&quot; Scalaの勉強 - クラス - ハードウェアの気になるあれこれ&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>2018-09-09 17:23:24</published>
  <title> Scalaの勉強 - クラス</title>
  <type>rich</type>
  <url>https://tech-diningyo.hatenablog.com/entry/2018/09/09/172324</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
