|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
|i'm in chapter 7 of "Programming in Objective-C.|
"Modify the print method from you Fraction class so that it takes an optional BOOL argument that indicates whether the fraction should be reduced for display. ..."
"...an optional BOOL argument..."
question: should the print method be modify so that it takes an optional variable, the variable of type BOOL is there or not there. or should the print method be modify so that it takes a variable allowing the option to reduce the fraction be passed into the print method. and of course the variable is of type BOOL.
the first sounds like polymorphism to me; the second is cool. i mean understand how to do the second. if anyone can help please let me know which the author intended. i would hate to think i've missed something in the reading so far. but i will reread.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.