
130 ◾ Software Engineering: The Current Practice
An example is an introduction of the cashier authorization into a point-of-sale.
e old point-of-sale did not require authorization, and anyone was able to launch
the application and use all of its functionality (see the classes in the right part of
Figure 8.5 with blank fillings). e change request is to “create a cashier login that
will control the user log in with a username and password.”
A new class Cashier is created separately from the old code, and contains
the new authorization responsibility. e new class has the fields cashierId and
password and the methods login() and logout(). e