1
2
3
4
5
6
7
8
9
- (id)copyWithZone:(NSZone *)theZone {
    MySampleClass *copy = [super copyWithZone:theZone];
    copy->myName = [myName copy];
    copy->myTitle = [myTitle copy];
    copy->isAFlag = isAFlag;
    copy->aListOfProperties = [aListOfProperties copy];

    return copy;
}