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

Consdier te following class definitions: class smart class superSmart: public sm

ID: 3572678 • Letter: C

Question

Consdier te following class definitions:
class smart class superSmart: public smart
{
public:                {
void print() const; public:
void print() const;
void set (int, int); void set (int, int, int);
int sum(); int manipulate();
smart (int, int); superSmart();
private: superSmart(int, int, int);
int x; private:
int y; int x;
int secret(); };
};

a. which private members, if any, of smart are public members of superSmart?
b. which members, functions, and/or data of the class smart are directly accessible in class supperSmart?

please answer in c++ visual studio 2013 Thanks!

Explanation / Answer

a) There is no any private member of smart which are public members of superSmart.

b)members, functions, and/or data of the class smart are directly accessible in class supperSmart are as follows:

void print() const; void set (int, int);   int sum();

These are directly accessible as they are public.

Note:Please ask in case of any doubt,would glad to help you,Thanks!!