Self-Review Exercises
-
9.1 Fill in the blanks in each of the following:
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.
Class members specified as are accessible only to member functions of the class and
friend
s of the class.class members are accessible anywhere an object of the class is in scope.
can be used to assign an object of a class to another object of the same class.
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.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.