Swift#1 Class or Struct?

In Objective C or C: Use Struct when you need to group few values and expect them to be copied, rather than referenced.

In Swift: Both are closer in functionality than other languages. Much Functionality can apply to instances of either a class or a struct type.

Because of this, the more general term used in swift reference is instance, which applies to any of these two types.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s