Object-oriented programming: Difference between revisions

Content deleted Content added
Reverted 1 edit by 103.103.209.138 (talk): Unexplained removal of content
Tags: Twinkle Undo Mobile edit Mobile web edit Advanced mobile edit
Corrijo
Line 2:
{{Redirect|Object-oriented|other meanings of object-oriented|Object-orientation (disambiguation){{!}}Object-orientation}}
{{Use dmy dates|date=January 2020}}
[[File:oopOop-uml-class-example.pngsvg|frame|right|[[UML]] notation for a class. This Button class has [[Variable (computer science)|variables]] for data, and [[Method (computer programming)|functions]]. Through inheritance, a subclass can be created as a subset of the Button class. Objects are instances of a class.]]
 
'''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]]). In OOP, [[computer program]]s are designed by making them out of objects that interact with one another.<ref>{{Cite journal