class Foo {
public:
void method(); ← best practice: don’t put the inline keyword here
…
};
inline void Foo::method() ← best practice: put the inline keyword here
{ … }
Here’s the basic idea:
The public: part of the class body is where you describe the observable semantics of a class, its public member functions, its friend functions, and anything [...]
Continue Reading..