Object-oriented programming: Difference between revisions

Content deleted Content added
m Added one more access specifier i.e. Internal which is present in many programming languages like (C#, Swift & Kotlin). Internal is also an access specifier that permits the access of data and operations only to files present in same package, assembly or module.
Undid revision 1134152639 by 2A01:CB1E:75:31AB:A2:BA91:D0E:6965 (talk)
Line 1:
{{short description|Programming paradigm based on the concept of objects}}
{{Redirect|Object-oriented|other meanings of object-oriented|Object-orientation}}
{{Use dmy dates|date=January 2020}}o
{{Programming paradigms}}
 
O
'''Object-oriented programming''' ('''OOP''') is a [[programming paradigm]] ooobased on the concept of "[[Object (computer science)|objects]]", which can contain [[data]] ooandand [[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