Slide 22
Slide 22 text
December 2, 2010 S.C. Chen @ VIPLab 22
•
void setProperties(char *c1, char *c2, int i);
myCar->setProperties("Foo", "Bar", 5566);
•
- (void) setMake:(NSString *) aMake
andModel:(NSString *) aModel
andYear:(int) year;
[myCar setMake:@"Foo" andModel:@"Bar",
andYear:5566];
setProperties()
setMake:andModel:andYear: