K
Kouisawang
Hello all,
I have a question when I found the following code;
--------------------------------------------------------------------------------------
#ifndef FOO_H
#define FOO_H
//some more include
class foo{
//member functions, variables
}
#include "foo.cc" /* this line that I would like to ask that what is it
for? why we have to include the implementation file? Doesn't is violate
the encapsulation or information hiding concept? */
#endif
I have a question when I found the following code;
--------------------------------------------------------------------------------------
#ifndef FOO_H
#define FOO_H
//some more include
class foo{
//member functions, variables
}
#include "foo.cc" /* this line that I would like to ask that what is it
for? why we have to include the implementation file? Doesn't is violate
the encapsulation or information hiding concept? */
#endif