Amazon.com Widgets Exercise 2
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2013, 03:05:50 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Programming in Objective-C, 4th edition
| |-+  Exercises
| | |-+  Chapter 9
| | | |-+  Exercise 2
Pages: [1]   Go Down
Print
Author Topic: Exercise 2  (Read 448 times)
stuartjj
Newbie
*
Posts: 11






« on: June 12, 2012, 05:58:54 AM »

What did you all get for an answer to exercise 2?

I think the answer is yes, since the id type can be used to store objects that belong to any class.
Logged
StanleyRShapiro
Newbie
*
Posts: 6


Email




« Reply #1 on: June 12, 2012, 10:43:53 PM »

One of my concerns was whether the Rectangle shares methods (in name) with the other classes that take as arguments, or return different types than the classes previously assigned to dataValue, but that shouldn't matter here since dataValue is only being set to an instance of an object, and no actual method is being sent to the instance itself.
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.