The basic mechanism of header inclusion is the same, but of course we're talking about two different languages so there is a big difference.

What you're looking at is probably just a matter of convention of file extension.