adspace


Difference in classes and structures in swift?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the common execution states for a swift ios app (ios application lifecycle).

896


How can you define a base class in swift?

926


Explain some biggest changes in usernotifications.

925