The class base

Consider the following class definition: (8)

class base

 public:    void setXYZ(int a, int b, int c);

    void setX(int a);

    int getX() const

 

 return x;

 

    void setY(int b);

     int getY() const

 return y;

 

    int mystryNum()

 

 return (x * y – z * z);

 

        void print() const;

    base()

    base(int a, int b, int c);

 protected:    void setZ(int c)

 

 z = c;

 

    void secret();

    int z = 0;

private:      int x = 0;

     int y = 0;

 ;

a. Which member functions of the class base are protected?

b. Which member functions of the class base are inline?

c. Write the statements that derive the class myClass from class base as a public inheritance.

d. Determine which members of class base are private, protected, and public in class myClass.

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