Object Oriented Programming on Arduino

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.

AlarmCock::AlarmCock(): AlarmDevice()
{
}

In the example above, your can call the constructor of AlarmDevice() while writing constructor of AlarmClock().