Page 1 of 1

Based in Figure below, identify items (a), (b), (c), (d) & (e). * #include using namespace std; class Student { int idN

Posted: Thu Jun 02, 2022 8:05 am
by answerhappygod
Based In Figure Below Identify Items A B C D E Include Using Namespace Std Class Student Int Idn 1
Based In Figure Below Identify Items A B C D E Include Using Namespace Std Class Student Int Idn 1 (105.35 KiB) Viewed 16 times
Based in Figure below, identify items (a), (b), (c), (d) & (e). * #include using namespace std; class Student { int idNum; public: Student () { // (a) idNum = 0; // ‒‒‒‒‒ - (b) ----- cout << "A Student object is created!\n"; } void setIDNum (int id) { idNum = id; } int getIDNum () { return idNum; } }; int main() { Student s1; // · (c) 11 cout << "Student id= (d) << s1.getIDNum () << endl; // sl.setIDNum (123); // ----- (e) ➖➖➖➖➖ cout << "Student id = " << s1.getIDNum () << endl; return 0; } 10 points