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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.