T
The Cool Giraffe
I was told to use the following scheme.
// Some.h
class Some
{ bool doSome ();};
// Some.cpp
#include "Some.h"
bool Some::doSome () {return true;}
Why do i need to specify the returned type? The scope
Some:: i get, the name of the method too, parameter
type and number - sure thing. But why, oh why, does one
need to specify that doSome returns a bool when
implementing it in the cpp-file? It's unambiguous, isn't
it? Please advise.
// Some.h
class Some
{ bool doSome ();};
// Some.cpp
#include "Some.h"
bool Some::doSome () {return true;}
Why do i need to specify the returned type? The scope
Some:: i get, the name of the method too, parameter
type and number - sure thing. But why, oh why, does one
need to specify that doSome returns a bool when
implementing it in the cpp-file? It's unambiguous, isn't
it? Please advise.