x4code:
small question, this compiles both classes or only one?
AFAIK: everything in your project directory gets complied, but only things that are referenced from your setup() and loop() get linked into the resulting binary file. So, the answer to the question that you actually wanted to ask is "only one will wind up taking up space on your arduino".