Question: Question 8: Use operator overloading to make a copy assignment operator in class Person such that it copies all the attributes of object 1 to
Question 8: Use operator overloading to make a copy assignment operator in class Person such that it copies all the attributes of object 1 to object 2. Explain how is this function different from default copy constructor? [CLO3- 5 marks] Question 9: Consider any three exceptions in this code and handle them. (These exceptions should not be related to file handling) [CLO3- 5 marks] Question 10: Make a friend function Add classes taken to class Students. Call this function such that it takes an object of class student and increases the number of classes taken by the integer given as function parameter. [CLO3 5 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
