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)

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 - (4657 Reads)

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

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