Google News
logo
Swift - Interview Questions
Explain Enum in Swift.
Enum is also known as Swift Enumeration. Enum is a data type which contains a set of the related values. It is declared in a class and its values are accessed through the instance members of that class.
 
Syntax :
enum enum_name    
{    
// values are described here    
}
Advertisement