|
From: Kiryl V M. <ki...@ea...> - 2004-08-25 16:23:35
|
> "operator=3D default version C& C::operator=3D(const &);" > The & follows the variable (?). Are you sure that it follows the variable. Maybe what you think is a = variable in fact is a type definition. Check it. > 8: CAT (const CAT &); =20 Here, "const CAT" is type, not variable. When you _declare_ some method, = you can omit variable. Like in this case. > 27: CAT::CAT(const CAT & rhs) Here, "const CAT" is type, and "rhs" is variable/object. As I mentioned = before, when you declare a function or method in the class (.h file), = you may omit the variable/object in declaration. But when you write a = function/method itself in implementation file, then you specify this = variable/object. I am pretty sure, that in the first example above, what precedes the = ampersand is type. Regards, |