Hi,
I'm new to Objective-C (or C for that matter) and I'm wondering in what cases to use structs.
Say I have a couple of classes which both contain
title
description
otherwise they are not related whatsoever so subclassing is not an option. Would this be a suitable case for using a struct?
What are the general pros and cons for struct usage ?
I'm new to Objective-C (or C for that matter) and I'm wondering in what cases to use structs.
Say I have a couple of classes which both contain
title
description
otherwise they are not related whatsoever so subclassing is not an option. Would this be a suitable case for using a struct?
What are the general pros and cons for struct usage ?