Object-oriented programming: Difference between revisions

Content deleted Content added
Reverted 1 edit by 103.81.92.151 (talk): Inappropriate external link
WikiCleanerBot (talk | contribs)
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
Line 4:
{{Programming paradigms}}
 
'''Object-oriented programming''' ('''OOP''') is a [[programming paradigm]] based on the concept of ''[[Object (computer science)|objects]]'',<ref name=alanKayOnOO />, which can contain [[data]] and [[source-code|code]]: data in the form of [[Field (computer science)|fields]] (often known as [[Attribute (computing)|attributes]] or [[Property (programming)|properties]]), and code in the form of [[Procedure (computer science)|procedures]] (often known as [[method (computing)|methods]]).
 
A common feature of objects is that methods are attached to them and can access and modify the object's data fields. In this brand of OOP, there is usually a special name 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