[solved] – Question 87979
Write the definition of a class Player containing:
An instance variable name of type String, initialized to the empty String.
An instance variable score of type int, initialized to zero.
A method called set_name that has one parameter, whose value it assigns to the instance variable name.
A method called set_score that has one parameter, whose value it assigns to the instance variable score.
A method called get_name that has no parameters and that returns the value of the instance variable name.
A method called get_score that has no parameters and that returns the value of the instance variable score.
Expert Answer
OR

