Java does not support the structure, union, or enumeration programming constructs. Structures and unions are redundant with respect to classes. Anything you can do with a structure or union you can do within a class. A similar redundancy exists between enumerations and classes. You can represent what an enumeration does by simply creating a class that defines a series of constants. |