Quick question regarding OO design:
If I had a class that contains a list of items that are defined within a struct. The struct in this case does not contain any allocated memory, so a direct copy to another struct of this type should be possible. Would it be more efficient (and correct) to:
a: use a method to return the value of one of the items members and thus have one corresponding method for each member of the struct.
b: use a single method to return a copy of the struct that can either be copied to a temporary struct type, or directly referenced from the returning value. i.e.
Thanks.Code:result = object.mymethod().structmember;