Monday, 1 August 2011

Object Oriented Programming As a Paradigm

There has been debate about the proper definition to give to object oriented programming. There has also been some debate about the primary idea behind the concept. In a nutshell, object oriented programming is the technique of writing application text that is split into a number of modules.

Object oriented programming is a new framework which is much different from the programming methods that have been used in the past. In fact, the concepts which have been created by OOP are so powerful that they are said by some to be creating a new revolution in programming.

Originally, object oriented programming was merely the subject of research. However, powerful system architectures were built based on it, and were compatible with operating systems and central processing units. Many people believe that object oriented programming was derived from the concept of an "object" that is commonly associated with grammar. Traditionally, software has also placed an emphasis on the subject. The components that make up a subject tend to be complex, and programming languages which are subject-oriented tend to be complex as well. To solve these problems, developers started looking at objects instead of subjects.

Doing this allowed the field of programming to move in a different direction. Instead of taking an approach which is subject-oriented, researchers decided to take an approach which is object-oriented. For example, in the object-oriented approach, the verb within an application statement will always be connected to an object. Another important attribute of object oriented programming is the way in which subtypes are processed within data types. The data of an object is important when it comes to constraints which have been set by the programmer. When a datatype is blocked by a constraint, it will be a subtype of the datatype that does not have a constraint. The constraints can be preserved by the methods which are connected to the data.

A data constraint is something that can either be expected by the programmer, or it may be declared. No matter which option is used, an object oriented programming language will create the structures that will make sure the constraints and assumptions are retained by only a certain part of the application. The documentation that is available on most object oriented programs will provide information about assumptions and constraints. Object oriented programming has also been used to advertise a number of products. Because of this OOP has a strong connection to marketing.

The vast majority of object oriented programming languages use a philosophy that is not as general as the definition of OOP. The terminology that is used will separate object based programming from programming that is object oriented. Abstraction is a term that is important for OOP, but it is not specific to this programming approach. There are a number of other programming approaches that use abstraction as well. While reusability is a concept that has often be associated with object oriented programming, it has existed since the 1950s, long before OOP was developed.

Many experts choose to refer to OOP has being a paradigm instead of a method of programming. The reason for this is because they point out that object oriented programming can alter the way in which software can be developed. Object oriented programming can literally change the way developers view software. Object oriented programming places an emphasis on the design of a system as well as the programming. The system must define the objects that interact with it. Because of encapsulation, the code that is performing the task is not important to the object, and it is also not important to anyone that uses the object.

There are a number of connections that have been found between system theory and OOP. While system theory places an emphasis on the system, OOP places an emphasis on the objects that make up a system. One characteristic which is found with many OOP languages is message passing programming abilities. It is not important how a computation is set up. However, an emphasis is placed on how text is split into modules. Object oriented programming languages place an importance on the code within a program. The computation model is insignificant. Many people make the mistake of confusing the Actor model with OOP, but they are different concepts.

The Message Concept In OOPs

To understand object oriented programming, you will need to become familiar with messages. As the name implies, a message is a process in which software objects will communicate with one another. Because of this, having one object is not enough.

An object will work best when it is exists in a large application that is populated by other objects. When these objects interact with each other, programmers will be able to gain a high level of functionality, and the behavior of the system will be very complex. To give you an example of this, imagine that you have a motorcycle that is sitting in your garage. By itself, it is nothing but gears and metal. However, when you sit on it, turn it on, and begin riding it, both you and the motorcycle have created interaction.

The software objects that exist within a program must interact as well. They will do this by sending messages to each other. When object Z wants object R to initiate one of R's methods, object Z will transmit a signal to object R. There is a possibility that object R will not have enough information to activate the method. For example, if you want your motorcycle to slow down, you will need to "communicate" with it by pressing down on the brakes. The data that is transferred with the message is called parameters. The messages that are sent between software objects are comprised of three things. The first is the object to which the message is being sent. The second is the name of the method that is being requested. The third is the parameters that must be used with the method.

The messages use parameters to make sure the information is precise. If the receiving object does not have enough information, it will not be able to properly carry out the method. The three parts that make up a message are enough for the receiving software object to carry out the requested method. There is no other information that is needed. There are two important advantages that messages have. First, the behavior of an object will be displayed through the methods it uses. Because of this, transferring messages will allow a large number of interactions to occur between objects. Second, the objects will not have to be in the same machine in order to send or receive messages. It is also not necessary for them to be in the same process. 


Encapsulation plays an important role in object oriented programming. It can be defined as concealing decisions which are related to the design of a computer program. The information that will often be hidden are things that are likely to be altered. The purpose of encapsulation is to protect the other parts of the application from changing when one piece of information is changed. To conceal a design decision, a programmer will need to build a strong interface. This interface will cover the rest of the application from any changes that are made. In contemporary programming languages, the concept of encapsulation has been used in a number of different ways.

While some people choose to use encapsulation as a general term for hiding information, others use it in a manner which is much more specific. In object oriented programming, the software module may hide the data by encapsulating it within a module which showcases an interface. It will reduce the chances of a software being damaged during its development by transferring the dependency of the code into an interface which is secure. The elements will carry out operations on the interface so that if a change occurs, it is not necessary for the clients to change as well. In most cases, the information will be hidden by concealing the layout of the data. If the layout is altered, the change will be reduced to a small portion of the program.

Information hiding is important for splitting up software, hardware, or equipment into parts that are functional. A good example of this is a car. A car is a intricate device that is split into a number of modules. Each module will have an interface which hides the decisions which are related to design. This will allow car companies to offer a number of products while maintaining a car which is cost effective to build.

The History of Object Oriented Programming

The basis for OOP started in the early 1960s. A breakthrough involving instances and objects was achieved at MIT with the PDP-1, and the first programming language to use objects was Simula 67. It was designed for the purpose of creating simulations, and was developed by Kristen Nygaard and Ole-Johan Dahl in Norway.


They were working on simulations that deal with exploding ships, and realized they could group the ships into different categories. Each ship type would have its own class, and the class would generate its unique behavior and data. Simula was not only responsible for introducing the concept of a class, but it also introduced the instance of a class.

The term "object oriented programming " was first used by Xerox PARC in their Smalltalk programming language. The term was used to refer to the process of using objects as the foundation for computation. The Smalltalk team was inspired by the Simula 67 project, but they designed Smalltalk so that it would be dynamic. The objects could be changed, created, or deleted, and this was different from the static systems that were commonly used. Smalltalk was also the first programming language to introduce the inheritance concept. It is this feature that allowed Smalltalk to surpass both Simula 67 and the analog programming systems. While these systems were advanced for their time, they did not use the inheritance concept.

Simula 67 was a groundbreaking system that has inspired a large number of other programming languages, and some of these include Pascal and Lisp. By the 1980s, object oriented programming had become prominent, and the primary factor in this is C++. Object oriented programming was also important for the development of Graphical user interfaces. The Cocoa structure that exists within Mac OS X is a good example of a dynamic GUI that works with an object oriented programming language. This paradigm of programming has also played an important role in the development of event-driven programming.

Niklaus Wirth and his associates were looking at areas such as modular programming and data abstraction, and they developed two systems which incorporated these elements. These two systems are Oberon and Modula-2. Oberon used a unique approach to classes and object orientation that is much different than C++ or Smalltalk. Since the introduction of OOP, a large number of modern programming languages are now using the concept. Some of these are Fortran, BASIC, and Pascal. There have been some compatibility issues, because many programs were not designed with a OOPs approach in mind. Object oriented programming languages that were "pure" did not have many of the functions that programmers needed.

To solve these problems, a number of researchers have been attempting to design new programming languages that used object oriented concepts but still retained many of the functions that programmers needed. One example of a programming language that has achieved this to some degree is Eiffel. Another programming language that has attempted to solve this problem is Java. Java has become popular because it uses a virtual machine, and it is very similar to C++ and C. The virtual machine is important because it allows code to be run on multiple platforms without having to be changed. Another system that is similar is Microsoft's .NET. Many developers now understand the importance of OOP, and are actively using it within their own programs. Many researchers have continued to make advancements by using the object oriented approach.

There are a number of other languages that have successfully combined the object oriented approach with procedures that are useful to programmers. Python is one example, and Ruby uses a similar approach as well.

The use of an object oriented approach has led to advancements in modeling languages, design patterns, and a number of other areas. It is likely that OOP is a programming paradigm that will continue to evolve as we move forward into the future. It is a powerful language which has continued to improve over the years. It is the subject of debate within the programming community, as critics point out a number of problems with the structure. However, the popularity of programming languages such as Java demonstrate that it is a paradigm that is here to stay.