Content deleted Content added
GoutComplex (talk | contribs) No edit summary Tags: Reverted Visual edit |
Undid revision 1155815978 by GoutComplex (talk), The cited book "Encyclopedia of Religious Rites, Rituals, and Festivals" has nothing to do with OOP or websites |
||
Line 5:
'''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]]. The data is in the form of [[Field (computer science)|fields]] (often known as [[Attribute (computing)|attributes]] or ''properties''), and the code is in the form of procedures (often known as ''[[Method (computer science)|methods]]'').
A common feature of objects is that procedures (or 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
Line 197 ⟶ 195:
===Open recursion===
In languages that support [[open recursion]], object methods can call other methods on the same object (including themselves), typically using a special variable or keyword called <code>this</code> or <code>self</code>. This variable is ''[[name binding|late-bound]]''; it allows a method defined in one class to invoke another method that is defined later, in some subclass thereof.
==OOP languages==
|