Self-Review Exercises
-
3.1 Fill in the blanks in each of the following:
Every class definition contains the keyword followed immediately by the class’s name.
A class definition is typically stored in a file with the filename extension.
Each parameter in a function header specifies both a(n) and a(n) .
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) .
Keyword
public
is a(n) .Return type indicates that a function will perform a task but will not return any information when it completes its task.
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.