Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the class specification below. Write the prototype (i.e. header) of a m

ID: 3545200 • Letter: C

Question

Consider the class specification below.  Write the prototype (i.e. header) of a member function to  overload the assignment operator (i.e. =).

#include <string>

using namespace std;

class StudentTestScores{

    private:

       string studentName;

       float *testScores;  // used to point to an array of test scores

       int numTestScores;  // number of test scores

   public:

       // Class default constructor

// Class copy constructor

// Class destructor

// Overloaded assignment opertaor.  Allows deep copying of one instance of the class to another.

//class accessors

//class mutators

// other functions

};

Explanation / Answer

StudentTestScores operator=(StudentTestScores);