Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

5.6 An Example of a Derived Facet Class

As mentioned previously, the phone number facet class is intended to serve as a base class. Let's now present an example of a derived facet class, the US phone number formatting facet. It works by default with the static country code table and "US" as its own locality. It also knows the prefix for dialing foreign numbers from the US. Here is the class declaration for the facet:

Other concrete facet classes are built similarly.


Previous fileTop of DocumentContentsIndexNext file

OEM Edition, ©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.