Theeaxe

Lynda Command Line - Player.m

Apr 30th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  Player.m
  3. //  Test-Command-Line
  4. //
  5. //  Created by Masen Beliveau on 4/27/14.
  6. //  Copyright (c) 2014 KidCO. All rights reserved.
  7. //
  8.  
  9. #import "Player.h"
  10. #import "Employee.h"
  11.  
  12. @implementation Player
  13.  
  14. - (void)dealloc
  15. {
  16.     //CLOSE the connection to the database
  17.     NSLog(@"The dealloc method is called automatically.");
  18. }
  19.  
  20. - (id)init
  21. {
  22.     // OPEN a connection to the database
  23.     self = [self initWithInteger:5000];
  24.     return self;
  25. }
  26.  
  27. - (id)initWithInteger: (int) initialScore
  28. {
  29.     self = [super init];
  30.     if (self) {
  31.         //custom
  32.         _score = initialScore;
  33.     }
  34.     return self;
  35. }
  36.  
  37. @end
Advertisement
Add Comment
Please, Sign In to add comment