Declaration of function parameter as "const"

Why are we declaring the parameter “Student s” as const in the operator functions.

Const for parameters means that they should not change their value. ‘const’ keyword stands for constant. In C++ it is used to make some values constant throughout the program. If we make an artifact of a C++ program as constant then its value cannot be changed during the program execution.