Swift: Structure and Class instances

Swift structures and classes only define how a object should appear. They themselves are not the object. In order to create a object from a structure or a class, we have to create instance of that particular class or structure. This is done by typing the name of the structure or class followed by ( ).

 

Leave a Reply