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 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.