- #1
fog37
- 1,568
- 108
Hello,
I am trying to get my head around the important difference between these two different styles (paradigms) of programming. I am familiar with traditional structural programming: data, variables, functions, structures. The functions are blocks of instructions that can process data, etc.
OOP is said more centered around the data than structural programming. I understand there are classes, objects, instances, methods, etc...
While programming in Arduino, I noticed that the use of certain hardware components, like a servo motor, has OOP in the code but I am not sure how it truly works, why it is needed and its advantages...
Thanks!
Fog37
I am trying to get my head around the important difference between these two different styles (paradigms) of programming. I am familiar with traditional structural programming: data, variables, functions, structures. The functions are blocks of instructions that can process data, etc.
OOP is said more centered around the data than structural programming. I understand there are classes, objects, instances, methods, etc...
While programming in Arduino, I noticed that the use of certain hardware components, like a servo motor, has OOP in the code but I am not sure how it truly works, why it is needed and its advantages...
Thanks!
Fog37