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
sappoRo.R #12 初心者セッション
kosugitti
0
230
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
110
[Fin-JAWS 第38回 ~re:Invent 2024 金融re:Cap~]FaultInjectionServiceアップデート@pre:Invent2024
shintaro_fukatsu
0
400
Kubernetes History Inspector(KHI)を触ってみた
bells17
0
200
Ruby on cygwin 2025-02
fd0
0
140
ファインディの テックブログ爆誕までの軌跡
starfish719
2
1.1k
バックエンドのためのアプリ内課金入門 (サブスク編)
qnighy
8
1.7k
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
160
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
4
370
知られざるDMMデータエンジニアの生態 〜かつてツチノコと呼ばれし者〜
takaha4k
4
1.3k
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
110
ARA Ansible for the teams
kksat
0
150
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
BBQ
matthewcrist
86
9.5k
Designing for humans not robots
tammielis
250
25k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Embracing the Ebb and Flow
colly
84
4.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Adopting Sorbet at Scale
ufuk
74
9.2k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
29
2.2k
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