class foo; in header file

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-04-28T10:14:22Z Indexed on 2010/04/28 10:23 UTC
Read the original article Hit count: 291

Filed under:
|

Hi,

Is some one able to explain why header files have something like this?

class foo; // This here?
class bar
{
   bar();

};

Do you need an include statement when using this?

Thanks.

© Stack Overflow or respective owner

Related posts about c++

Related posts about headerfile