Structures, Unions, Enumerations


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.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net