Question: class BaseClass { public : void BaseAlpha (); private void BaseBeta (); float baseField ; }; class DerivedClass : public BaseClass { public : void

class BaseClass

{

public:

void BaseAlpha();

private

void BaseBeta();

float baseField;

};

class DerivedClass : public BaseClass

{

public:

void DerivedAlpha();

void DerivedBeta();

private:

int derivedField;

};

Using the above code.

1)List all the private data members of BaseClass.

2) List all the private data members of DerivedClass.

3)List the private data members that the member functions of BaseClass can reference directly.

4)List the private data members tat the member functions of DerivedClass can reference directly.

5)List all the member functions that a client of the BaseClass can invoke.

6)(2 Points) List all the member functions that a client of the DerivedClass can invoke.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!