AudioLiveScroller.h - is there a reason why no CPP file?


#1

Just wondering why the AudioLiveScroller class from the demo is all in the header file - is it something to do with the Timer class its inherited or for another reason? 

I'm using it as a basis for another class I'm working and about to try seperate things out.. 

 

Thanks


#2

It makes no semantic difference whether a class is written inline or not.

But whenever you have a simple class that can be written as header-only, I'd always recommend doing so. It means there's less code, less boilerplate, and all the code for that class is in one place.