I am trying to rewrite the constructors in this code. For this problem it says the written program asks for a student name and a student id. The main program then creates a student object with the name and id entered into the code. Rewrite the constructor the same was as in the previous coding problem.However I wonder if I have written them as classes. Whenever I run this code it keeps on getting errors. How would I fix this code? This is what I have so far.
line 21: error: 'Student::Student' has the same name as the class in which it is declared|
line 34: error: 'Student::Student' has the same name as the class in which it is declared|
and a lot of the subsequent errors stem from the above ones, try compiling your program and addressing the obvious errors first