What Is OOP or Object Oriented Programming

Object oriented programming is also called OOP programming . OOP language model designed and worked around objects . In dose not interfere in actions and logics.
In other words which program is viewed as a logical procedure and takes input data , processes it, and produces output data is called Object oriented programming .

In OOP programming , programmers define the data type of a data structure and functions that can be applied to the data structure.

With this way , data structure becomes an object . This type of objects includes data and functions. In the OOP or object oriented programming , programmers create relationships between one object to other objects .

Object Oriented Language
Object Oriented Language

Some Famous OOP Languages

Some of the famous languages example that are object-oriented languages  Python, C++,  Smalltalk, Delphi, Java, Swift, C#, Perl, Ruby and PHP .

Advantages of OOP

One of the biggest advantage of the object oriented programming is that you can create modular codes . It means you can change your program functions with insert the module codes . So the basic structure of program is not changed .

To learn what is module read article what is plugin and module

When programmer enable the module new codes are running and when module or plugin is disabled codes are not running .

A programmer can simply add many features for existing object using OOP languages . This makes object-oriented programs easier to modify.

Structure of Object-oriented programming (OOP)

In OOP programming create functions , create procedures and methods ,create forms . In the following example a c++ program is created


int main()

{          // create a starting object

Experiment().run(); // Run the function


The Experiment class could be defined as follows:

class Experiment{
Experiment(); // Constructor
void Run(); // Run the experiment
Detector *det; // Detector in this experiment
Source *sce; // Particle source
ResultFile *rfile; // Result file

Understand the working of program

The Experiment::Experiment() constructor reads the input data (e.g., cross sections describing the probabilities of the interactions) and creates and initializes the attributes (particle source, result file etc.).

The Experiment::run() methods does the work – it starts particle emission in the source using the appropriate method of the Source class, determines, whether the given particle hits the detector using the appropriate Detector method, records the results of the detection into the ResultFile instance and in the end processes the results using the appropriate ResultFile methods.

This example is take from this source .