I know the method listed below takes in 2 arguments, card and atTop. Why is atTop repeated twice? I know addCard is the name of the function and this function returns a void where card is a variable of type Card* and I know atTop is of type BOOL, but why is atTop twice?
- (void)addCard: (Card *)card atTop:(BOOL)atTop;
atTopis a reference name to the value. for example it could have been- (void)addCard: (Card *)card atTop:(BOOL)myBool;and inside the function you would've accessed it by usingmyBool.