OOP


Also found in: Dictionary, Thesaurus, Acronyms, Wikipedia.

OOP

(computer science)

OOP

object-oriented programming

A programming language structure wherein the data and their associated processing ("methods") are defined as self-contained entities called "objects." The norm today, object-oriented programming (OOP) languages, such as C++ and Java, provide a formal set of rules for creating and managing objects. The data are stored in a traditional relational database or in an object database if the data have a complex structure. See O-R mapping and object database.

There are three major features in object-oriented programming that makes them different than non-OOP languages: 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, only the processing and data associated with that unique step needs to be added. Everything else 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, which was used to create the graphical user interface (see Xerox Star). ACTOR and Eiffel were also earlier OOP languages.

Today, C++, C#, Java, JavaScript, Visual Basic.NET and Python are popular object-oriented languages. The following compares basic OOP terms with traditional programming. See object-oriented DBMS.

OOP           Traditional Programming

 class         define data + processing

 object        data + processing

 attribute     data (a field)

 method        function

 message       function call

 instantiate   allocate a structure


Relational vs. Object Modeling
Instead of separate employee, department and job tables, an employee class contains the data and processing for all employees. Each subclass (manager, secretary, etc.) has its own data and processing but also inherits everything from the employee class. Changes made to the employee class affect every subclass.
References in periodicals archive ?
The increase in insurance coverage, expanding the health insurance benefit package, and reduction in OOP, enhanced access to and utilization of the healthcare services, and in turn, led to satisfaction among the public.
Further, variation in risk-adjusted reinsurance payments across plans is not reflected in plan bids and thus OOP premiums.
"Estimated reductions in OOP spending were likely too modest to have substantially reduced financial burden on families of children with particularly high mental health expenditures."
At step 2, OOP participation was found to be an additional significant predictor of program completion after controlling for other student characteristics, and the improvement in the model was significant ([X.sup.2] = 5.04, p = .02).
2c) (Z)-2-buten-1-ol, IR (KBr): 3350 (OH), 3082 (=CH), 1658 (C=C), 670 (OOP =CH); 1H-NMR (CDCl3): 2.05 (3H, d, J= 6.4 Hz, CH3); 3.65 (1H, s, OH); 4.18 (2H, d, J= 6.2 Hz, CH2); 5.64 (1H, td, J=10.9 Hz, J=6.2 Hz, CH); 5.70 (1H, qd, J=10.9 Hz, J=6.4 Hz, CH); 13CNMR (CDCl3) 11.6, 57.9, 125.9, 130.6.
This study will focus on the entire rare disease patient group, present a detailed analysis of the total and OOP health expenditures on rare diseases and explore their determinants.
"Bulgaria's trend runs counter to the well-established relationship of diminishing private (and OOP) expenditure shares with increasing GDP," the report said.
Once an individual has met the plan's OOP max, the plan must pay 100% of covered benefits.
In this paper, a mathematical model of operational optimization problem (OOP) for a large-scale parallel-unit SWRO desalination plant, which includes objective function and constraint functions, is made.
Typically foraging on bare or lightly vegetated ground, it has a butterfly-like undulating flight motion and the name reflects the 'oop oop oop' sound it makes.
Commenting on the report, N Devadasan, principal investigator of the study by the Bangalore-based Institute of Public Health (IPH), said, 'It is unacceptable that even after four years of the scheme, more than 50 percent of enrolled patients had to incur out-of-pocket (OOP) expenditure at the time of admission.'
We examine two important issues related to health and financial burden in middle-aged and older Americans: (1) whether or not new health events affect a consumer's unsecured debt, and (2)to what extent the associated out-of-pocket medical expenses (OOP) contribute to unsecured debt.