Question: Write your standard C++ codes to do the following (for class both interface and implementation): 1. Declare a class named Student in C++ syntax to

 Write your standard C++ codes to do the following (for class

Write your standard C++ codes to do the following (for class both interface and implementation): 1. Declare a class named Student in C++ syntax to model the object - a student with the following features (as in a header file): - the private portion of the class Student for people consisting of an integer for ID and a char pointer to a dynamic array for the name. - the public member functions in the Student class should include - default constructor for a person named "John" and ID is 987654321 - constructor to initialize the name and ID by passing the values - int get_id() const; // accessor to retrieve student's ID - void set_name(char new_name[]]); // mutator to set or change student's name - destructor; - copy constructor - overload operator = - a print function to print the Student information in the format: Student's name (Student's ID), example: John (987654321) 2. Implement all the above member functions (as in the .cpp file) in the class Student and overload output operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!