Skip to content

Commit 1aec6ac

Browse files
authored
Update 《招聘一个靠谱的iOS》面试题参考答案(上).md
1 parent 6852c4e commit 1aec6ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

01《招聘一个靠谱的iOS》面试题参考答案/《招聘一个靠谱的iOS》面试题参考答案(上).md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ typedef NS_ENUM(NSInteger, CYLSex) {
498498
}
499499
500500
- (id)deepCopy {
501-
CYLUser *copy = [[[self class] allocWithZone:zone]
501+
CYLUser *copy = [[[self class] alloc]
502502
initWithName:_name
503503
age:_age
504504
sex:_sex];
@@ -522,7 +522,7 @@ typedef NS_ENUM(NSInteger, CYLSex) {
522522

523523
```Objective-C
524524
- (id)deepCopy {
525-
CYLUser *copy = [[[self class] allocWithZone:zone]
525+
CYLUser *copy = [[[self class] alloc]
526526
initWithName:_name
527527
age:_age
528528
sex:_sex];

0 commit comments

Comments
 (0)