What is use of enum in swift?
Answer / Dheeraj Kumar Jatav
An enumeration, or 'enum' in Swift, is a custom data type that represents a set of related values. Enums are used to define a set of possible cases, each of which can have associated values if necessary. They are useful for defining types with a limited number of valid states.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is protocol in swift?
Does swift have a runtime?
How long does a swift transfer take?
What are the features of swift programming?
What is use of enum in swift?
What is the significance of “?” In swift?
Can any be nil swift?
Who calls the main function of our app during the app launch cycle?
What is memory leak in swift?
What is better swift or objective c?
What is a static variable swift?
What is init() in swift?