Leo Chiu
Leo Chiu

Jun 3, 2019

·
1 min read

根據開放封閉原則OCP,利用抽象介面,來讓每個類別實作抽象方法execute,所以我們寫一個Trnsction抽象類別,有execute方法,每個交易都必須要實作execute,再根據交易不同而實作不同的execute

SOLID 介面隔離原則 Interface Segregation Principle (ISP)
121
2

Finn

錯字

--

--

More from Leo Chiu

每天進步一點點,在終點遇見更好的自己。

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Leo Chiu

Leo Chiu

1.6K Followers

每天進步一點點,在終點遇見更好的自己。

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech