Difference in classes and structures in swift?
Answer / Ajay Kumar Bhartiya
In Swift, classes are reference types with inheritance, polymorphism, and deinitializers. Structures are value types that cannot have inheritance or deinitializers but can conform to protocols. Classes are generally used for complex objects and structures for simpler data structures.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is weak in swift?
What is differences in swift 1.x, 2.x, 3.x, 4.x?
What is “defer”?
How do you make a swift bridging header?
What is bridging header in swift?
What is forced unwrapping?
What is tuple in swift?
How do I create a bridge header in swift 4?
Is apple using swift?
Explain functions?
What is category in swift?
Explain what Lazy stored properties is and when it is useful?