Procedural programming and its difference from object oriented programming
Chimariya, Adesh (2012)
Chimariya, Adesh
2012
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2023100226665
https://urn.fi/URN:NBN:fi:amk-2023100226665
Tiivistelmä
This thesis will try and focus on comparing Procedural programming with Object oriented programming. It shows the comparison of PP and OOP via statistics. It compared PP and OOP via application tests, speed and performance. This was done by comparing the speed of both programming languages to run a similar example. The difference between C Struct and C++ classes was also taken into consideration.
In order to illustrate different aspects and use cases of PP and OOP, C and C++ programming languages will be used respectively. Several examples have been used throughout the thesis for comparing PP and OOP. As a result of given research, the importance and usability of PP and OOP was realized. It became obvious that PP is not an "old" paradigm, how majority used to believe, or not even just a predecessor of object oriented high level languages. It is separate way of thinking and programming, which goes along with machine logic and compiler practices. It is very useful paradigm when computing heavy calculations or processing data in sequential order. It was also realized that OOP has many optimization techniques, never the less, PP has it's own ways of speeding up the process of compilation and run by keeping it simple for the compiler to follow the program structure from the top to bottom.
In order to illustrate different aspects and use cases of PP and OOP, C and C++ programming languages will be used respectively. Several examples have been used throughout the thesis for comparing PP and OOP. As a result of given research, the importance and usability of PP and OOP was realized. It became obvious that PP is not an "old" paradigm, how majority used to believe, or not even just a predecessor of object oriented high level languages. It is separate way of thinking and programming, which goes along with machine logic and compiler practices. It is very useful paradigm when computing heavy calculations or processing data in sequential order. It was also realized that OOP has many optimization techniques, never the less, PP has it's own ways of speeding up the process of compilation and run by keeping it simple for the compiler to follow the program structure from the top to bottom.