An enumeration is a user-defined data type which consists of set of related values. Keyword enum is used to defined enumerated data type.

Enumeration in swift also resembles the structure of C and Objective C.

It is declared in a class and its values are accessed through the instance of that class.

Initial member value is defined using enum intializers.

Its functionality is also extended by ensuring standard protocol functionality.

 

mycodetips

Passionate about coding and software development holding 10+ Years of experience including 6+ years of experience on Mobile application Development.

More Posts