A question in C++, I hope that the answer is correct as it is required, and not copy and paste from Google. I hope that
Posted: Mon Jun 06, 2022 11:09 am
A question in C++, I hope that the answer is correct as it is
required, and not copy and paste from Google. I hope that the
solution will be in accordance with the demands of the official,
because I need it to be correct With sincere thanks
Q1/ Write C++ program to declare student status. the program should have class 1 insert student name and age call by reference, class 2 should insert student status (success, fail) using static member function and inherit class 1, class 3 should insert subject name inherit class 1, and class 4 inherit class 2&3 and test if student success of not and display all information (student name, age, success or not, subject name). Where: If success=1 and fail-0 display success If success=0 and fail=1 display fail
required, and not copy and paste from Google. I hope that the
solution will be in accordance with the demands of the official,
because I need it to be correct With sincere thanks
Q1/ Write C++ program to declare student status. the program should have class 1 insert student name and age call by reference, class 2 should insert student status (success, fail) using static member function and inherit class 1, class 3 should insert subject name inherit class 1, and class 4 inherit class 2&3 and test if student success of not and display all information (student name, age, success or not, subject name). Where: If success=1 and fail-0 display success If success=0 and fail=1 display fail