Translate

Saturday, 24 January 2015

Object Oriented Approach to Software Programming

Lets take a look at the Object Orient Approach taken to Software Programming. Of course we looked at Programming Languages such at C++, C# , Java and Ada which where designed for OOP. So it is time looked at the common approaches we would use. Yes we could could take different programs and put them to work together. The main part of the approach will be the Object, that entity which contains all the methods and the attributes.

The OOP approach to software programming is to start by identifying the objects involved in a problem and the messages that those objects should respond to. The program that results is a collection of objects, each with its own data and its own set of responsibilities. The objects interact by sending messages to each other. There is not much "top-down" in the large-scale design of such a program, and we are more used to the traditional programs that have a hard time getting used to OOP. However, if we use OOP we can claim that object-oriented programs tend to be better models of the way the world itself works, and that they are therefore easier to write, easier to understand, and more likely to be correct.

We should think of objects as "knowing" how to respond to certain messages. Different objects might respond to the same message in different ways. For example, a "print" message would produce very different results, depending on the object it is sent to. This attribute of objects, that different objects can respond to the same message in different ways, is called polymorphism.



So, OOP is meant to be both a superior program-development tool and a partial solution to the software reuse problem. Objects, classes, and object-oriented programming will continue be important to approaching a viable solution.

No comments:

Post a Comment