Skip to content

Instantly share code, notes, and snippets.

@toddkramer
Created December 28, 2014 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddkramer/c5fde53f2dbbc1c31d13 to your computer and use it in GitHub Desktop.
Save toddkramer/c5fde53f2dbbc1c31d13 to your computer and use it in GitHub Desktop.
SwiftInitializers01-Person.h
// Person.h
@interface Person : NSObject
@property (nonatomic, copy) NSString* firstName;
@property (nonatomic, copy) NSString* lastName;
@property (nonatomic, copy) NSString* middleInitial;
@property (nonatomic, copy) NSString* title;
- (instancetype)initWithFirstName:(NSString*)firstName
lastName:(NSString*)lastName;
- (instancetype)initWithFirstName:(NSString*)firstName
lastName:(NSString*)lastName
middleInitial:(NSString*)middleInitial;
- (instancetype)initWithFirstName:(NSString*)firstName
lastName:(NSString*)lastName
middleInitial:(NSString*)middleInitial
title:(NSString*)title;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment