Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Object Oriented Training - Session 1
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
hatelove
May 26, 2012
Programming
1
8.4k
Object Oriented Training - Session 1
封裝、繼承、多型
hatelove
May 26, 2012
Tweet
Share
More Decks by hatelove
See All by hatelove
1. 在沙箱中開發
hatelove
12
3k
BDD in .NET - TDD 在實務上的最後一塊拼圖
hatelove
4
2.9k
OO training 基本原則整理
hatelove
2
5.3k
OO training homework 3 review and summary
hatelove
1
11k
OO training homework 2 review and summary
hatelove
1
4.6k
OO training homework 1 review and summary
hatelove
1
8.1k
Object Oriented Training - Session 4
hatelove
1
5.2k
Object Oriented Training - Session 3
hatelove
1
11k
Object Oriented Training - Session 2
hatelove
1
4.8k
Other Decks in Programming
See All in Programming
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.3k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
CSC307 Lecture 08
javiergs
PRO
0
670
今から始めるClaude Code超入門
448jp
7
8.4k
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
970
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
200
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
CSC307 Lecture 06
javiergs
PRO
0
680
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
630
Featured
See All Featured
Context Engineering - Making Every Token Count
addyosmani
9
650
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
440
So, you think you're a good person
axbom
PRO
2
1.9k
How to build a perfect <img>
jonoalderson
1
4.9k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
820
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
52
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
410
Building Adaptive Systems
keathley
44
2.9k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Transcript
Trainer: Joey Chen Date: 2012/05/14 Object Oriented Training – Session
1
- 2 - 分組 • 四人一組 • 請在紙張上寫上 – 組員的名字
– 今天的日期 • 小組搶答 – 拿牌(1張1分) – 最終PK(德州撲克規則,牌面最大組+3分)
- 3 - Question OO有什麼好處 最想改善哪些OO問題 最想了解OO哪些部分
- 4 - Agenda 類別與 實體 封裝 繼承 多型 作業
Class and instance 類別與實體
- 6 - 類別與實體 – 範例
- 7 - 建構式範例
- 8 - 建構式範例
Encapsulation 封裝
- 10 - 封裝
- 11 - 封裝
- 12 - 存取修飾詞 private protected public internal
Inheritance 繼承
- 14 - 繼承
- 15 - 常用修飾詞 overload override virtual abstract sealed static
Polymorphism 多型
- 17 - 多型 – 類別繼承關係
- 18 - 多型 – 類別繼承關係
- 19 - 多型 – 範例
多型 - Demo
- 21 - 回顧
- 22 - 結論
- 23 - 作業 1. 重構範例程式,將物件淬煉出來 2. 設計案例 – 因為繼承關係,而導致某個需求異動時,無法彈
性的修改程式以符合需求 3. 在目前工作上,將物件的職責抽離成class,並 列出修改前後的程式 3 2 C
- 24 -
Thanks for your listening Q & A