Self-Review Exercises for Section 23.2

23.1 State whether the following statement is true or false, and if false, explain why: If an attribute of a class is marked with a minus sign (-) in a class diagram, the attribute is not directly accessible outside of the class.

23.2 In Fig. 23.2, the association between the ATM and the Screen indicates that:

a) we can navigate from the Screen to the ATM

b) we can navigate from the ATM to the Screen

c) Both a and b; the association is bidirectional

d) None of the above

23.3 Write C++ code to begin implementing the design for class Account.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

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