An instance of a new subclass of the
sale.Shop
class is needed to replace the default, because some new behavior was
added in the subclass; e.g. options where added to, removed from or
replaced in the Shop's MenuSheet, the logging mechanism was changed, or
additional global conditions where imposed on shutdown-ability.
call Shop.setTheShop with parameter instance of NewShop.
Comments
The Shop is designed following the
Singleton
design
pattern.
sale.Shop.getTheShop
returns the
singleton
instance of the Shop that is to be used
globally in the application.