Table 21.1: Levels of PR Authorization Management Level Authorization Limit Branch Manager $25,000 Regional Director $100,000 Vice President $200,000 President and COO $400,000
我们可以定义不同的类,来对应上面列表中的不同治理层次。 Listing 21.1: Classes Representing Different Management Levels
class BranchManager { static double LIMIT = 25000; … … }//End of class class RegionalDirector { static double LIMIT = 100000; … … }//End of class class VicePresident { static double LIMIT = 200000; … … }//End of class class PresidentCOO { static double LIMIT = 400000; … … }//End of class