I am new to C++, albeit with a small amount of programming experience, and wanted to know if there is any global consensus on including keywords in the definition or not.
For example (not a valid statement, but for example):
class Dog : Animal {
void foo() const override final foo bar ... keywords;
}
Is it generally recommended (for clarity's sake) to do the same in the definition, or should I just leave them off?
Dog::foo() const override final foo bar ... keywords {
//
}
Are there any keywords that MUST be included in the definition if included in the declaration?