In this video, we discuss the differences between classes and structs with some examples on XCode Playground. This is a super popular interview question which every iOS developer must know.
TLDR - the primary differences are:
1. Classes support inheritance while structs don't
2. Classes are reference types while structs are value types
3. Classes requires an initialiser while structs don't
Premium training:
1. Build an Onboarding Login/Sign-up flow - https://www.udemy.com/course/ios-swift-5-build-an-onboarding-login-sign-up-flow/?referralCode=4C5BCC979E35AD503C81
2. Build Beautiful Onboarding/Landing Screens - https://www.udemy.com/course/ios-swift-5-build-beautiful-onboarding-screens/?referralCode=C7A3BB61872FA1369A9B
3. RESTFul API Weather App with Alamofire 5 - https://www.udemy.com/course/ios-13-swift-5-restful-api-weather-app-with-alamofire-5/?referralCode=0582B0D05F6FB872E559