The Arduino environment seems to support most of the C++ patterns. So, there is a chance that you can write instructions in Object Oriented ways.
arduino
Software controlled DIY automation
An attempt to work out software controlled hardware automation for do-it-yourself electronics. This is a very abstract topic on DIY Projects. This section comprises of using computer skills, shell scripting, programming languages, web development, API usage, databases and related topics in order to produce controllable automation.