What is init() in swift?
Answer / Dhawal Goyal
In Swift, `init()` is a special method that is used to initialize an instance of a custom class or struct. It must be declared inside the class or struct definition and called when creating a new instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the differences between a struct and a class?
What is optional chaining?
What is the difference between nil and none in swift?
What is difference between any and anyobject in swift?
What are the advantages of using swift?
What do you do when you realize that your app is prone to crashing?
What is string in swift?
What are the new feature in swift 4.0?
What is the difference between swift and ‘objective-c’ language?
How does closure work in swift?
What is static let in swift?
What are methods in swift?