那天看了《Hardcore Java》,對“To assert or not to assert” 中一句話理解的不是很透,書中也沒有詳細的解釋和舉例。
“Use assertions to check preconditions and postconditions on parameters of protected and private access methos.”
這句話,主要是對 preconditions and postconditions on parameters 不是很明白。
誰能幫忙翻譯一下,或者舉個例子解釋一下嗎?謝謝!
posted on 2007-05-19 08:29
三告習習 閱讀(465)
評論(2) 編輯 收藏 所屬分類:
Questions?