Question: Write a class definition studentType which has two public functions: setData and print. - setData is a void function that take a string and a
Write a class definition studentType which has two public functions: setData and print. - setData is a void function that take a string and a double as parameters. - print is a void function with no parameter. - print() will not alter any variables in the studentType object. - There are two private members: stuName (string type) and gpa (double type).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
