Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Player.m
- // Test-Command-Line
- //
- // Created by Masen Beliveau on 4/27/14.
- // Copyright (c) 2014 KidCO. All rights reserved.
- //
- #import "Player.h"
- #import "Employee.h"
- @implementation Player
- - (void)dealloc
- {
- //CLOSE the connection to the database
- NSLog(@"The dealloc method is called automatically.");
- }
- - (id)init
- {
- // OPEN a connection to the database
- self = [self initWithInteger:5000];
- return self;
- }
- - (id)initWithInteger: (int) initialScore
- {
- self = [super init];
- if (self) {
- //custom
- _score = initialScore;
- }
- return self;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment