Loading AI tools
来自维基百科,自由的百科全书
空對象模式 (null object Pattern)是一種軟件設計模式。可以用於返回無意義的對象時,它可以承擔處理null的責任。有時候空對象也被視為一種設計模式。
public class NoCommand : public Command
{
public void execute()
{}
}
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.