1.

How Can You Make A Property Optional In Swift?

Answer»

DECLARING a QUESTION mark “?” in the code can make a property optional.

If a property doesn’t hold a value, then this symbol “?” HELPS in AVOIDING the runtime errors.

Declaring a question mark “?” in the code can make a property optional.

If a property doesn’t hold a value, then this symbol “?” helps in avoiding the runtime errors.



Discussion

No Comment Found