Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this submission, you are going to submit the implementation file of the Student class that you have declared in the previous submission. Specifically, please
In this submission, you are going to submit the implementation file of the Student class that you have declared in the previous submission. Specifically, please implement the following member functions in your submission: The destructor (3 points) The copy constructor (5 points) The overloaded assignment operator (6 points) /File: Persen.h #include #include using namespace std class Person! public: virtual Person; I/destructor: to release any memory that has been allocated to the object Person//default constructor id--1, name-"NA", birthday. 1/1/2000" Person(const Person & someone); I/copy constructor void operator(const Person &rbs); //assignment operator int get id censt://retum the id of a Person object string getuname0 senst, /return the name of a Person object sonst string get .bithdav0 const //return the birthday of a Person object string getEmai int sonst: /return the i-th email if exists; ew; return "NA" void set idint pew id; l/change a person's id to newid void setnamelstring ew.namel; / change a person's name to pew.name void set birthdavistring pew.bda: IIchange a person's birthday to new date void add.email string the.emai); l/add theemail to the list
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started