programming classes .h only or .h and .cpp?

when programming a class in c++ is it better to make just a .h file containing the class or split it up in a .h and .cpp file?

i would argue that making just a .h file is easier and more java-stylish.

And this has what to do with OpenGL or even graphics exactly?

Consult the C++ FAQ Lite.