, , . ", ++ ".
++ , (, -). , , . , , . , , , , , .
In function f, the author will show you that these statements will not compile due to how the statements are defined in the class. This is perfectly acceptable for overriding statements for your class, and sometimes it is definitely required (for example, to implement a deep copy of the pointer variable in your class). The point of the example is to show that a) you can provide your own implementation of these operators for your class, and b) because of this, you control whether the operators are supported and executed correctly for your class.
source
share