Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I asked this question before and there were lots of wrong answers so I\'m postin

ID: 3843895 • Letter: I

Question

   


I asked this question before and there were lots of wrong answers so I'm posting it again. These are simple yes and no questions. In the second picture you have to answer "yes and No" (which means if this will work) based on the program in 1st picture. C++ computer language.
please make sure your answers are correct as this is very important to me.
thank you in advance

HIncludeklostream> using namespace std; class A private: string name; public: float total; void setname(string n) name n; class B private: string ID; public: void setID(string i) class D: Ay public B int sal; public: void setsal (int s) sal s; class E public D f int main() AA1; B B1; D D1; E E1

Explanation / Answer

This is the solution for the given program on the screen

Explaination:

NOTE: The default modifier is private in C++

There are times when you have used no modifiers in the above program which results in making them private and hence, they will generate error during runtime.

Please rate the answer if it helps....Thankyou

Hope it helps..

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote