裏式替換原則(LSP)

第一種定義: if for each object o1 of type S there is an object o2 of type T such that for all programs P defined in terms of T,the behavior of P is uchanged when o1 is substituted for o2 then S is a subtyp
相關文章
相關標籤/搜索