Question: NEED IT ASAP 1. (13 points) Write a full class definition for a class named Player, and containing the following members. Member functions will be

NEED IT ASAP
1. (13 points) Write a full class definition for a class named Player, and containing the following members. Member functions will be defined outside the class. . A data member name of type string. A data member score of tvpe int. . A member function called setName that accepts a parameter and assiens it to name. The function returns no value. . A member function called setScore that accepts a parameter and assins it to score. The returns no value . A member function called getName that accepts . A member function called getscor no parameters and returns the value of name. e that accepts no parameters and returns he value of score. (13 points) For the following class with two data members; a. write 2. default constructor and two overload constructors with one and two input parameters. ite code segment in the main section that creates salesl object with default parameters, sales1 object with one parameter, and sales3 object with two parameters. b. Wr Class Sales private: double productPrice; string productName
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
