Look at the following declaration: Enum Color { RED, ORANGE, GREEN, BLUE } a. What is the
Question:
Look at the following declaration:
Enum Color { RED, ORANGE, GREEN, BLUE }
a. What is the name of the data type declared by this statement?
b. What are the enum constants for this type?
c. Write a statement that defines a variable of this type and initializes it with a valid value.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted: