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
hatelove
May 26, 2012
Programming
1
8.3k
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.8k
OO training 基本原則整理
hatelove
2
5.2k
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
8k
Object Oriented Training - Session 4
hatelove
1
5.1k
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
Migration to Signals, Resource API, and NgRx Signal Store
manfredsteyer
PRO
0
130
AI駆動で0→1をやって見えた光と伸びしろ
passion0102
1
880
Reactive Thinking with Signals and the Resource API
manfredsteyer
PRO
0
120
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
Go言語はstack overflowの夢を見るか?
logica0419
0
640
Blazing Fast UI Development with Compose Hot Reload (droidcon London 2025)
zsmb
0
350
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
440
テーブル定義書の構造化抽出して、生成AIでDWH分析を試してみた / devio2025tokyo
kasacchiful
0
320
Foundation Modelsを実装日本語学習アプリを作ってみた!
hypebeans
0
130
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
680
bootcamp2025_バックエンド研修_WebAPIサーバ作成.pdf
geniee_inc
0
140
Webサーバーサイド言語としてのRustについて
kouyuume
1
5k
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
What's in a price? How to price your products and services
michaelherold
246
12k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Mobile First: as difficult as doing things right
swwweet
225
10k
4 Signs Your Business is Dying
shpigford
186
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Side Projects
sachag
455
43k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3k
Code Reviewing Like a Champion
maltzj
526
40k
The Invisible Side of Design
smashingmag
302
51k
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