Pregunta de entrevista de Envoy

In Swift, what's the practical difference between struct and class?

Respuestas de entrevistas

Anónimo

17 de nov de 2016

With Swift, classes get inheritance and are passed by reference, structs do not have inheritance and are passed by value.

Anónimo

31 de ene de 2021

In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the Envoy Mobile Developer experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews