Page |
Problem |
58 |
The specification for the function what_is_this should be:
void what_is_this( const float ); and not void what_is_this( const double ); |
139 |
10.6.1 Friend classes
A whole class may be made a friend of another class by specifying its name. For example, to make all members of a class X visible to the class Account, the following line would be included in the class specification for X. friend class Account; The example using a friend class is fine, its just my description was wrong. |
246 |
The specification of the copy constructor in the class Set_of should be:
set_of( const set_of and not set_of( set_of |
248 |
The implementation of the copy constructor in the class Set_of should be:
set_of and not set_of This will allow a const item to be copied with the copy constructor using Borland V4. |
255 |
The specification of the virtual function holds in the class A_Bag should be:
virtual int holds ( Type& ) = 0; and not virtual int holds ( const Type& ) = 0; Note: Borland V4 is more strict about the use of const. |
259 |
The specification of the virtual function holds in the class A_Bag should be:
virtual int holds ( Type& ) = 0; and not virtual int holds ( const Type& ) = 0; Note: Borland V4 is more strict about the use of const. |
259 |
In the derived class Bag
the specification of the virtual function holds should be:
int holds ( Type& ); and not int holds ( const Type& ); The implementation of the virtual function holds in the derived class Bag should be: int Bag and not int Bag |