Input is an integer representing a subject code number. The subject code is stored in the list of subjects, if there is room for it. A student can't be studying the same subject more than once. Output from this method is a boolean flag indicating whether the enrolment was successful or not. Withdraw the student from a subject.
Input is a subject code number.
If the subject is being studied by the student then this method removes the given subject from the current list of subjects and returns a boolean flag indicating whether the removal was successful or not. Returns the student's id number to the caller. Destroy a student object. This function should deallocate any heap memory used by the object. This question concerns the concepts associated with inheritance and class hierarchies.