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
デザパタ勉強会!Bridgeパターン
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Java女子部
November 29, 2022
Programming
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
デザパタ勉強会!Bridgeパターン
https://javajo.doorkeeper.jp/events/144579
Java女子部
November 29, 2022
More Decks by Java女子部
See All by Java女子部
モダンJava再入門ハンズオン Java in Education For JUGs
javawomen
0
190
デザインパターン勉強会(Facade&Mediator)
javawomen
0
220
みんな大好きJava 8から9月リリースJava 17まで!最近のJava事情あれこれ / Java catch up from 8 to 17
javawomen
2
1.3k
お客様の中にJava女子部とお付き合いしてくださる方はいませんか?
javawomen
0
360
【子ども向けハンズオン】 ゲームで学ぼう、プログラミング!
javawomen
0
900
Java女子部について
javawomen
1
97
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
380
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
580
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
260
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.7k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
250
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
810
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
120
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
420
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
660
速習iPhone Duo対応
yuukiw00w
2
920
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
9.3k
The Rails Doctrine Decade
koic
2
440
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
510
Raft: Consensus for Rubyists
vanstee
142
7.7k
Code Review Best Practice
trishagee
74
20k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Visualization
eitanlees
153
17k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
900
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Transcript
デザパタ勉強会! Bridgeパターン 2022/11/26
Bridgeパターンとは? 「機能のクラス階層」と「実装のクラス階層」を分けて実装する実装パターン。 実装クラスのインスタンスを機能クラスに渡すことで二つの世界の橋渡しをするのでブ リッジパターンという! Animal SleepingAnimal DogImpl RabbitImpl LionImpl AnimalImpl
CatImpl 橋渡し! 機能のクラス階層 実装のクラス階層
Bridgeパターンにすると何が嬉しい? 実装のクラスに影響を与えずに機能の追加ができる! CatImpl DogImpl RabbitImpl RionImpl AnimalImpl Animal Animalに共通の「寝る」機能を追 加しようかな〜
SleepingAnimal こっちの変更がいらない!
Bridgeパターンの主な人物像 Abstraction • class • 機能クラス Imprementor • 実装クラス •
abstractクラス • Abstractionを保持する Refind Abstraction • 機能クラスの拡張 • extends Abstraction Concrete Imprementior • 実装クラスの拡張 • class • extends Imprementor public class Animal { private AnimalImpl impl;