8.9a

1
8.9 Enumeration _ All enum types are reference types. _Each enum declaration declares an enum class with the following restriction: +enum constants are implicitly final ,static + attemp to create an object of an enum type with operator new results in a compilation error. _Any constants of enum types must be the first statement in enum’s body.

description

a

Transcript of 8.9a

Page 1: 8.9a

8.9 Enumeration

_ All enum types are reference types.

_Each enum declaration declares an enum class with the following restriction:

+enum constants are implicitly final ,static

+ attemp to create an object of an enum type with operator new results in a compilation error.

_Any constants of enum types must be the first statement in enum’s body.