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
8.4k
1
Share
Object Oriented Training - Session 1
封裝、繼承、多型
hatelove
May 26, 2012
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.9k
Other Decks in Programming
See All in Programming
[KCD Czech] eBPF Meets the GPU: Future of AI Infra Observability
doniacld
0
130
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
760
3Dシーンの圧縮
fadis
1
560
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1.2k
初めてのRubyKaigiはこう見えた
jellyfish700
0
380
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
320
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
330
iOS26時代の新規アプリ開発
yuukiw00w
0
230
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
410
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
11k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Music & Morning Musume
bryan
47
7.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Code Reviewing Like a Champion
maltzj
528
40k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
260
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
390
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
370
Odyssey Design
rkendrick25
PRO
2
660
Faster Mobile Websites
deanohume
310
31k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
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