Self-Review Exercises

  1. 9.1 Fill in the blanks in each of the following:

    1. Class members are accessed via the            operator in conjunction with the name of an object (or reference to an object) of the class or via the            operator in conjunction with a pointer to an object of the class.

    2. Class members specified as            are accessible only to member functions of the class and friends of the class.

    3.            class members are accessible anywhere an object of the class is in scope.

    4.            can be used to assign an object of a class to another object of the same class.

    5. A nonmember function must be declared by the class as a(n)            of a class to have access to that class’s private data members.

    6. A constant object must ...

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.