Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swifty Studens2
Search
bati
October 15, 2016
Technology
400
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swifty Studens2
presentation by bati
bati
October 15, 2016
Other Decks in Technology
See All in Technology
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
継続的なAIコスト最適化
bgpat
1
350
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
180
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
170
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
DBについての基礎説明(MySQL編) - コロプラ 2026年度 新卒研修
colopl
0
100
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
170
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5k
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
270
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
250
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
170
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Git: the NoSQL Database
bkeepers
PRO
433
67k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Transcript
継承 vs Protocol Presented by Bati
積極的にProtocolを使おう
Protocolを使う理由 - OOPで問題視されていた多重継承問題を解決 - BaseViewController問題を限りなく解決に近づける
Protocol ? 継承?
どちらもコードを共通化してく れるもの
どちらも同じことができます
同じことをしてみよう
BaseViewControllerの 問題は???
継承の特徴 - デフォルト実装, 上書き, 付け足しができる - 多重継承でBaseClassが肥大化しメンテナンスがし にくくなる - structには使えない
protocolの特徴 - デフォルト実装, 上書きができる - 可読性が高い - 機能は全てあとから付け足す - structに使える
どちらともうまく付き合ってい こう