Private

Suppose that you have the following classes, small and notSmall:

class small

 public:

    void print() const;

    int add()

 return x + y;

    small()

    small(int a, int b)

 x = a;

 y = b;

private:

    int x = 0;

    int y = 0;

;

void small::print() const

    cout < “small:=”” –=””><>

         < “x:=”” “=””>< x=””>

class notSmall: public small

{

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X