Filter interviews by
Failable initialisers are initialisers that can return nil instead of an instance of the class.
Failable initialisers are denoted by placing a question mark after the init keyword.
They are commonly used to handle invalid input or to fail gracefully.
Example: init?(name: String) { if name.isEmpty { return nil } }
Failable initialisers can be used with optional binding to safely unwrap the returned instance.
Top trending discussions
Persistence - Core Data
Persistence - Core Data
Software Engineer
136
salaries
| ₹7.4 L/yr - ₹26 L/yr |
Senior Software Engineer
71
salaries
| ₹16 L/yr - ₹35 L/yr |
Technical Architect
21
salaries
| ₹50 L/yr - ₹73 L/yr |
Senior Data Scientist
18
salaries
| ₹18 L/yr - ₹40 L/yr |
Software Developer
16
salaries
| ₹7.8 L/yr - ₹18 L/yr |
OLX
Flipkart
Snapdeal
Paytm Mall