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

EXAM 1 SPRING 2018 VERSIONA Suppose you have the following 3 classes: (20 pts) s

ID: 3728614 • Letter: E

Question

EXAM 1 SPRING 2018 VERSIONA Suppose you have the following 3 classes: (20 pts) ss First class Second: public First class Third private: private: int b; private: string word; char c; int y Second( int, int, string, char); protected: protected protected: int x; void check) Second S char z; public: public: First (int, string) void calc (0 void fun(): void calcí double, double ); Third ( int, int, int, string, char,char); void print 0 And suppose you have the following client declarations of objects: First object1 (4,"RED"; Second object2 (6, 9."BLUE", S) Third object3 (5, 3, 8, "BLACK" A,'X); 1d oid b) List the member(s) of First that are directly accessible to a client using object2. c) List the member(s) of Second that are directly accessible to a client using object2. d) List the member(s) of First that are directly accessible to a client using object3. e) List the memberfs) of Second that are directly accessible to a client using object3. f) List the member(s) of Third that are directly accessible to a client using object3. g) Write the constructor of Second h) Write the constructor of Third

Explanation / Answer

a) void check();

void calc();

b) void check();

void calc();

c) void fun();

void calc(double,double);

d) void calc();

e) void fun();

void calc(double,double);

f) void print();

g) Second(int, int, string, char);

h) Third(int, int, int, string, char, char);

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