Question: What happens to the implementation of a class if we redefine a data member? For example, suppose we have Does the representation of a bar
What happens to the implementation of a class if we redefine a data member? For example, suppose we have

Does the representation of a bar object contain one b field or two? If two, are both accessible, or only one? Under what circumstances?
class foo { public: int a; char *b; }; class bar : public foo { public: float c; int b; };
Step by Step Solution
3.28 Rating (169 Votes )
There are 3 Steps involved in it
If you redefine a data member in a derived class it will hi... View full answer
Get step-by-step solutions from verified subject matter experts
