#import "BankAccount.h"

@implementation BankAccount 
-(BankAccount*) initWithName:(NSString*)n {
	self = [super init];

	if (self) {
		[self setName: n];
		[self setBalance: 0.0];
	}

	return self;
}

-(void) setName: (NSString*) n {
	name = n;
}

-(void) setBalance: (float) b {
	balance = b;
}

-(float) balance {
	return balance;
}

-(NSString*) name {
	return name;
}

-(void) deposit: (float) b {
	balance += b;
}

-(void) withdraw: (float) b {
	balance -= b;
}
@end