Homework 3 — OO Programming in Objective-C

Due Wednesday, March 24, 2010

NOTE: The hard copy of this assignment, like others in this class, is due at the beginning of the class period. This means that if you are even a minute late, you lose 20%. If you are worried about potentially being late, turn in your assignment ahead of time. Do this by submitting it to me during office hours or by sliding it under my office door. The electronic copy of this assignment is due at 9:00pm on the due date. Submit the electronic copy using the appropriate dropbox in D2L. Do not send assignments to me through email or leave them in my departmental mail box.

As discussed in class and in your readings, OO programming adds additional structure to procedural programs. Objective-C is an OO language that is very similar to other OO languages yet it has significant differences from them as well.

The assignment.

  1. Choose an OO languages with which to compare Objective-C. This could be Java or C++ or some other OO language.


  2. List two major features of OO languages that are not a part of straight procedural languages. Explain why each feature adds structure to OO programming.


  3. For each of these features, list and explain two important similarities in the way this feature is implemented in Objective-C and in the language you chose above.


  4. For each of these features, list and explain two important differences in the way this feature is implemented in Objective-C and in the language you chose above.

What to turn in.

Turn in both printed and electronic copies of your answers.