Honors Software Design - iOS Name -
Learn Objective-C in 6 Days Worksheet #3
Answer the following after reading http://mobile.tutsplus.com/tutorials/iphone/learn-objective-c-day-3/
1. What does the abbreviation "NS" stand for?
2. List five simple, common classes that are specific to Objective-C since they are named with the "NS" prefix.
3. What is the difference between immutable and mutable?
4. What is the difference between the single statement
NSString *testString;
and the two statements
NSString *testString;
testString = [[NSString alloc] init];
5. What is the purpose of the method init?
6. What does the @ indicate in the statement testString = @"Here's a test string in testString!";
7. Why is return 0; added as the last statement in a program?
8. What class is a child of NSString?
9. What class is a child of NSObject and a parent of NSMutableString?
10. What important method does NSString inherit from NSObject?