Question: Create a class called Student that has the following private member variables: string name; int score; The class Student has following public member functions: void
Create a class called Student that has the following private member variables:
string name; int score;
The class Student has following public member functions:
void setname(string s) // sets the name of the student. string getname() // returns the name of that student . void setscore(int sc) // sets the total score for the student char getgrade() // displays the grade of the student
Use class Student in a client program (main function). Create three student objects, display the name of each student and the grade he/she received.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
