Object-oriented programming: Difference between revisions

Content deleted Content added
Carlgay (talk | contribs)
Softened the claim that procedures belong to objects, changing to "a common feature of OO is...", since this is not true for all OO languages, such as Common Lisp.
Line 7:
'''Object-oriented programming''' ('''OOP''') is a [[programming paradigm]] based on the concept of "[[Object (computer science)|objects]]", which can contain [[data]] and [[Computer program|code]]: data in the form of [[Field (computer science)|fields]] (often known as [[Attribute (computing)|attributes]] or ''properties''), and code, in the form of procedures (often known as ''[[Method (computer science)|methods]]'').
 
A common feature of objects is that anprocedures object's(or ownmethods) proceduresare attached to them and can access and often modify the object's data fields. In this brand of itselfOOP, (objectsthere is haveusually a notionspecial ofname such as [[this (computer programming)|{{code|this|C++}}]] or {{code|self|swift}}) used to refer to the current object. In OOP, computer programs are designed by making them out of objects that interact with one another.<ref>{{Cite journal
| last1 = Kindler | first1 = E.
| last2 = Krivy | first2 = I.