- Default access to a union is public, it can contain member functions and member data
- It can’t have a static data members or a member of reference type.
- It cannot have virtual functions
- it cannot be used as base class nor it can have base class
- An object of a class with a construct or a destructor or a user-defined assignment operator cannot be a member of a union [from openasthra]
Sunday, April 27, 2008
Unions in C++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment