Created
May 6, 2017 14:09
-
-
Save jen2/b3dd4b210a4a0d096f27845026dc9cc7 to your computer and use it in GitHub Desktop.
Category Files Dinner+CleanUp.h & Dinner+CleanUp.m for "An Introduction to Categories in Objective-C."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dinner+CleanUp.h | |
#import "Dinner.h" | |
@interface Dinner (CleanUp) | |
- (void)bringDishesToSink; | |
- (NSUInteger)countTotalDishes; | |
- (void)putDishesInDishwasher; | |
- (void)removeDishesFromDishwasher; | |
@end | |
// Dinner+CleanUp.m | |
#import "Dinner+CleanUp.h" | |
@implementation Dinner (CleanUp) | |
- (void)bringDishesToSink | |
{ | |
//Do something to get dishes to sink. | |
} | |
- (NSUInteger)countTotalDishes | |
{ | |
//Do something to count dishes. | |
} | |
- (void)putDishesInDishwasher | |
{ | |
//Do something to put dishes in dishwasher. | |
} | |
- (void)removeDishesFromDishwasher | |
{ | |
//Do something to put remove dishes from dishwasher. | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment