Difference between revisions of "Object-oriented programming"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(programming paradigm)
(Class (computer programming))
Line 11: Line 11:
 
In OO programming, computer programs are designed by making them out of objects that interact with one another.
 
In OO programming, computer programs are designed by making them out of objects that interact with one another.
  
There is significant diversity in object-oriented programming, but most popular languages are class-based, meaning that objects are instances of classes, which typically also determines their type.
+
There is significant diversity in object-oriented programming, but most popular languages are [[Class (computer programming)|class-based]], meaning that objects are instances of classes, which typically also determines their type.
  
 
== External links ==
 
== External links ==
  
 
* [https://en.wikipedia.org/wiki/Object-oriented_programming Object-oriented programming] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Object-oriented_programming Object-oriented programming] @ Wikipedia

Revision as of 05:54, 8 June 2015

Object-oriented programming (OOP, OO, etc.) is a programming paradigm based on the concept of objects.

Objects have two parts:

  • Data structures that contain data, in the form of fields, often known as attributes
  • Code, in the form of procedures, often known as methods.

A distinguishing feature of objects is that an object's procedures can access and often modify the data fields of the object with which they are associated (objects have a notion of "this").

In OO programming, computer programs are designed by making them out of objects that interact with one another.

There is significant diversity in object-oriented programming, but most popular languages are class-based, meaning that objects are instances of classes, which typically also determines their type.

External links