Object-oriented programming: Difference between revisions

Content deleted Content added
m Reverted edit by 2409:4080:BECE:CF1A:CD26:5B4:2FCF:B996 (talk) to last version by Mitch Ames
Ian.joyner (talk | contribs)
m Real-world modeling and relationships: Add link to Meyer's online PDF
Line 284:
 
===Real-world modeling and relationships===
OOP can be used to associate real-world objects and processes with digital counterparts. However, not everyone agrees that OOP facilitates direct real-world mapping or that real-world mapping is even a worthy goal; [[Bertrand Meyer]] argues in ''[[Object-Oriented Software Construction]]''<ref name="Meyer230">{{cite book |title=Object-Oriented Software Construction |author=Bertrand Meyer, Second|edition=2nd Edition,|date=1997 p.|isbn=0-13-629155-4 230|publisher=Prentice-Hall}|url=https://bertrandmeyer.com/OOSC2/}}</ref> on page 230 that a program is not a model of the world but a model of some part of the world; "Reality is a cousin twice removed". At the same time, some principal limitations of OOP have been noted.<ref>M.Trofimov, ''OOOP – The Third "O" Solution: Open OOP.'' First Class, [[Object Management Group|OMG]], 1993, Vol. 3, issue 3, p.14.</ref>
For example, the [[circle-ellipse problem]] is difficult to handle using OOP's concept of [[inheritance (object-oriented programming)|inheritance]].