Remove asset challenge solution


#1

This is what I did to remove the assets. I saw some other solutions on here so that seemed rather difficult so I’m not sure if this is what the instructions meant to do.
In my BNRemployee.m file I wrote:

-(void)removeAsset{ [_assets removeAllObjects]; }

and in main.m I implemented it with:

for (int i = 0; i < 10; i++) { BNREmployee *randomEmployee1 = [employees objectAtIndex:i]; [randomEmployee1 removeAsset]; }

so each time through the loop it goes to each object and removes all assets from that object.