命令模式

From Wikipedia, the free encyclopedia

Remove ads

命令模式(參見英文command pattern)係物件導向編程講到嘅行為型設計模式。喺呢個模式入面,設計者會用一件物件封裝晒執行某個動作或者觸發某件事件所需嘅一切資訊。資訊包括:要執行嘅方法叫咩名、擁有呢種方法嘅物件,以及傳入方法嘅參數值。

參見

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads