What happens to the implementation of a class if we redefine a data member? For example, suppose

Question:

What happens to the implementation of a class if we redefine a data member? For example, suppose we have

class foo { public: int a; char *b; }; class bar : public foo { public: float c; int b; };

Does the representation of a bar object contain one b field or two? If two, are both accessible, or only one? Under what circumstances?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: