Import Statement

Having completed the development of the classes required to support the pie chart module, we can now wrap them into a package to enable easy reuse by other applications. Figure 15-38 lists the import statement required.The main thing to note about the import statement presented in Figure 15-38 is the use of the DEBUG? package field. In a number of the classes described in this chapter, we perform additional processing based on the value contained in the DEBUG? field, which provides an easy and efficient way to obtain debug messages. Additionally, by toggling the value back to false when the application is ready to be used, you enable a seamless transition from development to production.

Figure 15-38. Pie chart package import ...

Get Enterprise Curl now with O’Reilly online learning.

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