This documentation is archived and is not being maintained.

Member Functions in Unions

In addition to member data, unions can have member functions, as described in Member Functions. Although unions can have special functions such as constructors and destructors, unions cannot contain virtual functions. (For more information, see Constructors and Destructors.)