1. What is the this key word?
2. 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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here