Object-oriented programming: Difference between revisions

Content deleted Content added
m Reverted 1 edit by 2405:9800:B923:2B6:B4B7:730B:405B:A1E0 (talk) to last revision by 2A00:23EE:1050:29AF:6020:E55F:8546:E258
No edit summary
Tag: Reverted
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 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