Tuesday, June 19, 2007

function signatures

The signature of an implemented member function must match exactly the signature listed in the class interface.

1. const is part of the function signature. Whether a member function is an accessor (via the const at the end) or a mutator is part of the signature.

2. default parameters are specified in the interface only. They are omitted in the implementation.

返回值是否属于signature的一部分呢?

No comments: