Hey, can someone explain this piece of code to me which i got from the book?
[code]#import “BNRPerson.h”
@class BNRAsset;
@interface BNREmployee : BNRPerson
@property (nonatomic) unsigned int employeeID;
@property (nonatomic) unsigned int officeAlarmCode;
@property (nonatomic) NSDate *hireDate;
@property (nonatomic, copy) NSArray *assets;
-(double) yearsOfEmployment;
-(void)addAsset:(BNRAsset *)a;
-(unsigned int)valueOfAssets;
@end[/code]
I get the part where we say that there is somewhere an NSArray with a pointer named assets.
What i dong get is the last two lines, what are we doing with void and where is the AddAsset from and do i understand correctly that we are just creating a method called valueOfAssets that returns an unsigned int?
Thank you