函数

//no default parameter values: the
//short form calls the full one
void greetWithName(NSString *name) {
    NSLog(@"Hello, %@", name);
}

void greet(void) {
    greetWithName(@"unknown");
}

greet();
//prints 'Hello, unknown'

greetWithName(@"Alex");
//prints 'Hello, Alex'