Please help me with this codelab quesition for class. Class Questions > 11171 Xs a...WorkAreante...InstructionsWrite a full class definition for a class named Player, and containing the following...


Please help me with this codelab quesition for class.


Q ? *<br>Workbench<br>00 0? 0! 1× 0-<br>CH7: Intro to Classes and Objects > Class Questions > 11171 X<br>s a...<br>WorkArea<br>nte...<br>Instructions<br>Write a full class definition for a class named Player, and containing the following members:<br>• A data member name of type string.<br>d ...<br>• A data member score of type int.<br>• A member function called setName that accepts a parameter and assigns it to name. The function returns no value.<br>• A member function called setScore that accepts a parameter and assigns it to score. The function returns no value.<br>• A member function called getName that accepts no parameters and returns the value of name.<br>• A member function called getScore that accepts no parameters and returns the value of score.<br>Be sure to include any necessary #includes and 'using' statements<br>

Extracted text: Q ? * Workbench 00 0? 0! 1× 0- CH7: Intro to Classes and Objects > Class Questions > 11171 X s a... WorkArea nte... Instructions Write a full class definition for a class named Player, and containing the following members: • A data member name of type string. d ... • A data member score of type int. • A member function called setName that accepts a parameter and assigns it to name. The function returns no value. • A member function called setScore that accepts a parameter and assigns it to score. The function returns no value. • A member function called getName that accepts no parameters and returns the value of name. • A member function called getScore that accepts no parameters and returns the value of score. Be sure to include any necessary #includes and 'using' statements
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here