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
Object Oriented Training - Session 1
Search
hatelove
May 26, 2012
Programming
8.4k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Object Oriented Training - Session 1
封裝、繼承、多型
hatelove
May 26, 2012
More Decks by hatelove
See All by hatelove
1. 在沙箱中開發
hatelove
12
3.1k
BDD in .NET - TDD 在實務上的最後一塊拼圖
hatelove
4
3k
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.7k
OO training homework 1 review and summary
hatelove
1
8.2k
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
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
870
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
100
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
130
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
150
AI Augmentation Techniques with Liberty
ivargrimstad
1
350
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
Groovy as a human and AI friendly programming language
paulk
0
180
Event is what happens
moro
2
3.5k
Spec-driven Development with AI
simas
PRO
0
2.2k
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.8k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
280
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Producing Creativity
orderedlist
PRO
348
41k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
510
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
YesSQL, Process and Tooling at Scale
rocio
174
15k
Thoughts on Productivity
jonyablonski
76
5.4k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
560
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Test your architecture with Archunit
thirion
2
2.5k
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