0 votes
in Swift by
What is init() in Swift?

1 Answer

0 votes
by

Initialization is a process of preparing an instance of an enumeration, structure or class for use.

Initializers are also called to create a new instance of a particular type. An initializer is an instance method with no parameters. Using the initializer, we can write the init keyword.

init()

{

// perform some New Instance initialization here

}

Related questions

0 votes
asked Nov 8, 2022 in Swift by SakshiSharma
0 votes
asked Nov 7, 2022 in Swift by Robin
...