Loading AI tools
来自维基百科,自由的百科全书
在計算機編程中,後置條件指在執行一段代碼後必須成立的條件或謂詞。
例如,階乘的結果應該是大於等於1的整數。
在繼承的關係中,繼承了子程序的子類必須滿足鍥約。子類中重新定義的子程序可以加強後置條件,但不能削弱。[2]
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.