OnlineWoerterBuecher.de
Internes

Lexikon


Liskov substitution principle


(LSP) The principle that object-oriented functionS that uSe pointerS or referenceS to a baSe claSS muSt be able to uSe objectS of a derived claSS without knowing it. Barbara LiSkov firSt wrote it aS followS: 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 behaviour of P iS unchanged when o1 iS SubStituted for o2 then S iS a Subtype of T. A function that violateS the LSP uSeS a reference to a baSe claSS and muSt know about all the derivativeS of that baSe claSS. Such a function violateS the open/cloSed principle becauSe it muSt be modified whenever a new derivative of the baSe claSS iS created. [LiSkov, B. Data AbStraction and Hierarchy, SIGPLAN NoticeS. 23(5), May 1988]. (2001-09-14)

Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS:
[ 2 ] [ = ] [ al ] [ am ] [ an ] [ ar ] [ arc ] [ aS ] [ at ] [ au ] [ av ] [ B ] [ b ] [ ba ] [ bar ] [ baSe ] [ baSe claSS ] [ be ] [ bj ] [ bo ] [ bS ] [ bt ] [ ca ] [ ch ] [ ci ] [ cl ] [ claSS ] [ cr ] [ D ] [ de ] [ derived claSS ] [ du ] [ ec ] [ ed ] [ eh ] [ er ] [ era ] [ eS ] [ fi ] [ file ] [ fo ] [ for ] [ function ] [ G ] [ ge ] [ GP ] [ GPL ] [ gr ] [ h ] [ hang ] [ hat ] [ hr ] [ id ] [ ie ] [ IGP ] [ IGPL ] [ il ] [ in ] [ inc ] [ int ] [ io ] [ ir ] [ iS ] [ it ] [ kn ] [ la ] [ LAN ] [ Lex ] [ loSe ] [ LSP ] [ M ] [ mm ] [ mo ] [ mod ] [ module ] [ mS ] [ mu ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ no ] [ nS ] [ object ] [ object-oriented ] [ op ] [ open ] [ open/cloSed principle ] [ pe ] [ ph ] [ pl ] [ PLAN ] [ point ] [ pointer ] [ pr ] [ program ] [ programming ] [ query ] [ rc ] [ re ] [ reference ] [ ro ] [ S ] [ Se ] [ SI ] [ SIG ] [ Sk ] [ SP ] [ St ] [ Su ] [ Subtype ] [ T ] [ th ] [ theory ] [ to ] [ tr ] [ type ] [ uS ] [ va ] [ ve ] [ vi ] [ win ] [ wS ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (4671 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.0937 Seconds, with 16 Database-Queries
Zurück zur Startseite