I have list of resort items.
I have class Resort that stores that items.
Now I need to add opportunity to that class to have one resort as active.
So I will save that resort to UserDefaults.
I will need method 'save', 'load', 'check if current resort is active'.
So, should I extend Resort class for that methods and properties or the better way is to create Class ActiveResort ?
Aucun commentaire:
Enregistrer un commentaire