Add an additional student constructor to the university/student example to accept the university constructor argument by reference,

Question:

Add an additional student constructor to the university/student example to accept the university constructor argument by reference, rather than by pointer. For example, in addition to the constructor with the signature student: :Student (const string & fn, const string & in, char mi, const string &t, float avg, const string &course, const string &id, University *univ);, overload this function with a similar one, but with University &univ as the last parameter. How does this change the implicit call to this constructor? within your overloaded constructor, you will now need to take the address-of varepsilon the University reference parameter to set the association (which is stored as a pointer). You may need to switch to object notation (.) to set the backlink (if you use parameter univ, versus data member this>univ).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer: