FEATURED VIDEO

SLIDE SHOWS
The chip giant adds new remote management, encryption and anti-theft tools baked right into next-gen Intel Core vPro processors for commercial desktops and notebooks.
The long-awaited iPad has arrived. But here are 12 other tablet devices that will take aim at Apple this year as the suddenly crowded tablet PC market heats up.
Going green was the rage of 2009, and the buzz in 2010 isn't letting up. Manufacturers are responding to increased demands from their white box makers for more eco-friendly components.
INSIDE CHANNELWEB

Results found for: object-oriented programming
Printer Print This Page

Image Friendly
techweb
object-oriented programming
techweb
Writing software that supports a model wherein the data and their associated processing (called "methods") are defined as self-contained entities called "objects." Object-oriented programming (OOP) languages, such as C++ and Java, provide a formal set of rules for creating and managing objects. The data in an object model can be stored in the traditional table structure of a relational database (see O-R mapping) or, if the object model is very complex, in an object database, which is designed to hold object data (see object database).

Encapsulation, Inheritance and Polymorphism
There are three major features in object-oriented programming: encapsulation, inheritance and polymorphism.

Encapsulation Enforces Modularity
Encapsulation refers to the creation of self-contained modules that bind processing functions to the data. These user-defined data types are called "classes," and one instance of a class is an "object." For example, in a payroll system, a class could be Manager, and Pat and Jan could be two instances (two objects) of the Manager class. Encapsulation ensures good code modularity, which keeps routines separate and less prone to conflict with each other.

Inheritance Passes "Knowledge" Down
Classes are created in hierarchies, and inheritance allows the structure and methods in one class to be passed down the hierarchy. That means less programming is required when adding functions to complex systems. If a step is added at the bottom of a hierarchy, then only the processing and data associated with that unique step needs to be added. Everything else about that step is inherited. The ability to reuse existing objects is considered a major advantage of object technology.

Polymorphism Takes any Shape
Object-oriented programming allows procedures about objects to be created whose exact type is not known until runtime. For example, a screen cursor may change its shape from an arrow to a line depending on the program mode. The routine to move the cursor on screen in response to mouse movement would be written for "cursor," and polymorphism allows that cursor to take on whatever shape is required at runtime. It also allows new shapes to be easily integrated.

OOP Languages
Used for simulating system behavior in the late 1960s, SIMULA was the first object-oriented language. In the 1970s, Xerox's Smalltalk was the first object-oriented programming language and was used to create the graphical user interface (GUI). Today, C++ and Java are the major OOP languages, while C#, Visual Basic.NET, Python and JavaScript are also popular. ACTOR and Eiffel were earlier OOP languages. The following list compares some basic OOP terms with traditional programming. See object technology and object-oriented DBMS.

OOP Traditional Programming
class description of data +
processing
object (instance) actual data + processing
attribute actual data (a field)
method function that processes a
particular structure
message function call
instantiate allocate a structure





Object Modeling
When information systems are modeled as objects, they can employ the powerful inheritance capability. Instead of building a table of employees with department and job information in separate tables, the type of employee is modeled. The employee class contains the data and the processing for all employees. Each subclass (manager, secretary, etc.) contains the data and processing unique to that person's job. Changes can be made globally or individually by modifying the class in question.





Search For object-oriented programming On ChannelWeb

Find the latest news and information on object-oriented programming from across the Channelweb Network of IT Web sites.


techweb
temrs similiar to your header
Entries before object-oriented programming
techweb
techweb object-oriented DBMS
techweb object-oriented design
techweb object-oriented graphics
techweb object-oriented interface
techweb object-oriented operating system
techweb Entries after object-oriented programming
techweb
techweb object-oriented technology
techweb Object Packager
techweb object program
techweb object references
techweb object-relational database
techweb
define another it term
techweb techweb

techweb
Or get a random definition
techweb
copyright THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.

Copyright (©) 1981-2008 The Computer Language Company
Inc All rights reserved.
Media Kits | Reprints | Privacy Statement | Copyright © 2010 United Business Media LLC | Terms of Service
CRN Logo ChannelWeb Logo CRN Logo CRNTech Logo Vision Events XChange IPED
ADVERTISEMENT




CHANNEL SERVICES >>