Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Procedural programming
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Object-oriented programming === Also classified as imperative, [[object-oriented programming]] (OOP) involves dividing a program implementation into objects that expose behavior (methods) and data (members) via a well-defined interface. In contrast, procedural programming is about dividing the program implementation into [[variable (programming)|variables]], [[data structure]]s, and [[subroutine]]s. An important distinction is that while procedural involves procedures to operate on data structures, OOP bundles the two together. An object is a data structure and the behavior associated with that data structure.<ref>{{cite web |url=http://neonbrand.com/procedural-programming-vs-object-oriented-programming-a-review/ |title=Procedural programming vs object-oriented programming |publisher=neonbrand.com |access-date=2013-08-19 |last=Stevenson |first=Joseph |date=August 2013 }}</ref> Some OOP languages support the class concept which allows for creating an object based on a definition. Nomenclature varies between the two, although they have similar semantics: {| class="wikitable" |- ! width=33% |Procedural ! width=33% |Object-oriented |- | Procedure | [[Method (computer science)|Method]] |- | [[Record (computer science)|Record]] | Object |- | Module | Class |- | Procedure call | Message |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)