class property initialisers inheritance swift As we know, In swift, we must initialise the property values within the class definition. It can be done using default initialisers – that means assigning values to variables directly when we know that the value is never going to be changed in any of its instances or by using… Read More »
init method simple example swift programming Example below shows use of init method. It is used for initialization of the structure,class or enumeration property. In swift, we must initialise the properties before using them. So either you can do it while declaring them if they are not going to change for all instances. In case,… Read More »
Create object swift – how to create object ?
// class myClass
var obj = myClass()