Object-oriented programming: Difference between revisions

Content deleted Content added
ToastieIL (talk | contribs)
Removing "Mastering PHP Design Patterns" quote that's unremarkable and likely Conflict of Interest
fixed source code, added links
Line 5:
{{Programming paradigms}}
 
'''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 feature of objects is that an object's own procedures can access and often modify the data fields of itself (objects have a notion of [[this (computer programming)|{{code|this|C++}}]] or {{code|self|swift}}). In OOP, computer programs are designed by making them out of objects that interact with one another.<ref>{{Cite journal
Line 43:
|last1=McCarthy
|first1=J.
|last2=Brayton
|first2=R.