Monday, September 5, 2022

What is Object-Oriented Programming?

To understand what is object-oriented programming we have to describe what is an object and what is object-oriented. The objects are all around us e.g. computers, phones, tablets, cars, hoses,... These are the objects that we interact with every day. Objects in software development are collection of data and associated behaviors.
Object-oriented means functionally directed towards modeling objects. Under object-oriented there are popular buzz words such as object-oriented analysis, object-oriented design, and object-oriented programming. These three terms are stages in software development and object-oriented specifies the style of software development.
Object Oriented Analysis (OOA) - is a stage where a problem, system, or task analysis is performed to see what needs to be done. The output of this stage is a set of requirements. For example, if you have the task to build the engineering CAD program using OOA you have to obtain a set of requirements. In this case, users of this program have to:
  • create 3D models
  • export 3D models in various different formats
  • transform 3D models into 2D drawings
Of course, these are some of the basic OOA that comes to mind when thinking about CAD program/software.
Object Oriented Design (OOD) - the process of converting the output of OOA into an implementation specification. In this stage the objects are named, the behaviors are defined, and it is formally specified which objects can activate specific behaviors on other objects. At this stage, the answer is given to how things should be done.
Object-oriented programming (OOP) - is programming paradigm, based on the concept of objects which can contain data and code. Objects contain data in form of fields (attributes/properties) and code in form of procedures/methods. The methods are attached to objects and can access and modify the object's data fields.
OOP can be described as the process of converting a perfectly defined design into a program that does exactly what was originally requested by the CEO.

No comments:

Post a Comment