Solved

Look at the Following Code Sample: Enum Flavor { Vanilla

Question 39

Multiple Choice

Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Which of the following statements assigns the Flavor enumerated type value to The integer variable?


A) int n = Flavor.Strawberry.ToInteger() ;
B) int n = Strawberry.IntValue;
C) int n = (Flavor) Strawberry;
D) int n = (int) Flavor.Strawberry;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions