Câu hỏi phỏng vấn Objective-C
Câu hỏi

Name four important data types found in Objective-C

Câu trả lời

Here are four important data types found in Objective-C:

  1. id: This is a generic object pointer type that can point to any Objective-C object. It is commonly used when the exact type of an object is not known or when you want to write code that can work with objects of different classes.

  2. NSString: This is the Objective-C class for representing strings. It provides methods for creating, manipulating, and comparing strings.

  3. NSArray: This is the Objective-C class for represen...

entry

entry

Gợi ý câu hỏi phỏng vấn

senior

What happens when you invoke a method on a nil pointer?

expert

What's the difference between marking a method as @objc vs dynamic , when would you do one vs the
other?

senior

What are the reasons for using NSOperationQueue over GCD and vice versa?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào