Skip to content
EntityQ775349· pop 25· linked from 112 articles

策略模式

Sign in to save

Also known as policy pattern

軟件設計模式

In the Vinony graph

Within Vinony's link graph, 策略模式 is referenced by 112 other articles, and connects out to software design pattern, behavioral pattern and entity component system.

It is catalogued under the topic Software design patterns.

Its subject is documented across 22 Wikipedia language editions.

Wikidata facts

Part of
design
Show 3 more facts
Commons category
Strategy (design pattern)
Commons gallery
Strategy pattern
described by source
Design Patterns
Sources (2)

via Wikidata · CC0

Article · 中文

策略模式作爲一種軟件設計模式,指對象有某個行爲,但是在不同的場景中,該行爲有不同的實現算法。比如每個人都要“交個人所得稅”,但是“在美國交個人所得稅”和“在中華民國交個人所得稅”就有不同的算稅方法。 策略模式: * 定义了一族算法(业务规则); * 封装了每个算法; * 这族的算法可互换代替(interchangeable)。

Abstract from DBpedia / Wikipedia · CC BY-SA

Connections

Categories