• 可以含有构造函数、析构函数
  • 不能继承自其他类,不能作为基类
  • 匿名 union 在定义所在作用域可直接访问 union 成员
  • 全局匿名联合必须是静态(static)的

union 使用