source-file-organization

How do you inherit from a class in a different header file?

I am having dependency troubles. I have two classes: Graphic and Image. Each one has its own .cpp and .h files. I am declaring them as the following: Graphic.h: #include "Image.h" class Image; class Graphic { ... }; `Image.h`: #include "Graphic.h" class Graphic; class Image : public Gr...

Default directory layout for Java project

Is there any standard directory layouts for Java projects? What layout do you prefer most? I'm asking about more complex layout than just 'src' and 'bin' in project's directory (i.e. where do you put your test classes, build configurations, etc.?). Thanks in advance. ...