Category of Data Types in Swift?
There are mianly two types of data types in Swift
(A)Value Type:-
(1)Arrays, Booleans, Characters, Dictionaries, Floating-Points, Int, Strings and Tuples (These are implemented as structures)
(2)Optionals (These are implemented as Enumerations)
(B)Reference Types:-
(1)Classes
(2)Functions and Closures | |