Subscribe For Free Updates!

We'll not spam mate! We promise.

Apr 14, 2013

How do I put the code of methods outside classes in a header file?



How do I put the code of methods outside classes in a header file?

The code of a method speci ed in a header le must be declared inline. It means that when compiling, the calls to the method will all be replaced by the code of that method.

struct A
{
int a;
A();
};
inline A::A()
{
/* ... */
};

TechniqZone Socializer Widget
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment