Self-Review Exercises

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

    1. Every class definition contains the keyword            followed immediately by the class’s name.

    2. A class definition is typically stored in a file with the            filename extension.

    3. Each parameter in a function header specifies both a(n)            and a(n)           .

    4. When each object of a class maintains its own version of an attribute, the variable that represents the attribute is also known as a(n)           .

    5. Keyword public is a(n)           .

    6. Return type            indicates that a function will perform a task but will not return any information when it completes its task.

    7. Function            from the <string> library reads characters until a newline character ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.