<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>strongWhite</author_name>
  <author_url>https://blog.hatena.ne.jp/strongWhite/</author_url>
  <blog_title>RAKUS Developers Blog | ラクス エンジニアブログ</blog_title>
  <blog_url>https://tech-blog.rakus.co.jp/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>はじめに ラクスエンジニアのstrongWhiteです。今回はSwiftのextensionとprotocolについて書きます。 私がSwiftを勉強し始めたころは、この2つの概念がよくわかっていませんでした。 2つとも似ているようで全く違うので、両者について簡単にまとめてみます。 extensionとは extension（拡張）とは、特定のクラスや構造体、データ型など、名前はそのままにプロパティやメソッドを追加する機能です。 Javaでいうと「継承」と似ています。Javaの「継承」はクラスのプロパティやメソッドを引き継いだ別名のクラスを作るのに対し、Swiftの「拡張」は名前はそのままにな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.rakus.co.jp%2Fentry%2F20180717%2Fswift%2Fextension%2Fprotocol&quot; title=&quot;Swiftのextensionとprotocolについて - RAKUS Developers Blog | ラクス エンジニアブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tech-rakus/20210916/20210916153018.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-17 11:15:27</published>
  <title>Swiftのextensionとprotocolについて</title>
  <type>rich</type>
  <url>https://tech-blog.rakus.co.jp/entry/20180717/swift/extension/protocol</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
