Classwork Continuation


Go through Player and everywhere possible go through the accessors and mutators instead of editing the instance vars directly (think about where it is not possible to do this).

Now replace the name instance variable with two instance variables, first and last (think about what else this means you need to add). Adjust the accessor for the old name variable to return the first name and last name with a space between them. Adjust the old mutator so that the value passed in becomes the first name and the last name becomes "Smith".

Add code in main to test setting names using both the old and new versions for Players.