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.
-
Upload
ngoc-chien -
Category
Documents
-
view
216 -
download
0
description
a
Transcript of 8.9a
![Page 1: 8.9a](https://reader036.fdocuments.net/reader036/viewer/2022082518/55cf8fa4550346703b9e550b/html5/thumbnails/1.jpg)
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.