Why use OOP?
OOP is a staple of the modern programming world. As stated before, almost all modern applications utilize the object-oriented paradigm. When designed properly, object-oriented code will provide, but is not limited to, the following benefits:
- Reusability: The ability to move code modules from one application to another.
- Code maintenance: The ability to quickly fix issues that arise in the software.
- Reduces redundant code: Code is in one place and one place only.
- Reduces the memory usage on the controller: Since OOP reduces redundant code, it will cut down on the total memory usage.
- Leverages design: Function blocks are usually stitched together to form complex system architectures that cannot be accomplished without the use of objects.
- Increased productivity: Object-oriented code generally produces an overall better-quality product faster and cheaper than a non-object-oriented software system. When designed properly, the modules can be ported...