question archive Comment each line of code below #include<iostream></iostream> using namespace std; class Student { public: Student(int n,float s):num(n),score(s){} void change(int n,float s){ num=n; score=s; } Void the display () {cout < < num < < ", "< < score < < endl; } private: int num; float score; }; Int main() {Student stud,89
Subject:Computer SciencePrice: Bought3
Comment each line of code below
#include<iostream></iostream>
using namespace std;
class Student
{ public:
Student(int n,float s):num(n),score(s){}
void change(int n,float s){ num=n; score=s; }
Void the display () {cout < < num < < ", "< < score < < endl; }
private:
int num;
float score;
};
Int main()
{Student stud,89.5 (1);
stud.display();
,98.5 stud. Change (1);
stud.display();
return 0;
}
I need only explanation of this code ..... comment every line of this code