Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
immatryitout
3,154 PointsIts Me Again :) HELP with @property Quiz Question
Define getter and setter methods for the instance variable named "_qty".
@interface Product : NSObject { int _qty; }
- (int) _________ ;
- (void) ___________ : (int) qty;
@end
//they showed me in the video when doing a sphere with radius and center that.... { -(void)setRadius:(float)radius; -(float)radius;
-(void)setCenter:(NSArray *)center; -(NSArray *)center; }
//so the quiz question I'm using
- (int) qty ;
- (void) setQty : (int) qty;
//what am i doing wrong?
2 Answers
Matthew Ferris
2,981 Pointsdid you try _qty instead?
immatryitout
3,154 PointsI wasn't putting spaces ha