What are initializer in swift?



What are initializer in swift?..

Answer / Shubhashish Ambashtha

Initializers in Swift are methods called when an instance of a class or struct is created. They are responsible for setting up the initial state of the object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

How to convert nsmutablearray to swift array in swift?

1 Answers  


What is a protocol in swift?

1 Answers  


What is static in swift?

1 Answers  


Can enum be extended in swift?

1 Answers  


Consider the following code: var array1 = [1, 2, 3, 4, 5] var array2 = array1 array2.append(6) var len = array1.count What’s the value of the len variable, and why?

1 Answers  


What are the advantages of using swift for ios development?

1 Answers  


What are properties in swift?

1 Answers  


What do you mean by initialization?

1 Answers  


How to make a method or variable generics in swift?

1 Answers  


Is swift garbage collected?

1 Answers  


How can you define a base class in swift?

0 Answers  


Mention what are the type of integers does Swift have?

1 Answers  


Categories