Question: Suppose you have the following definitions: class Frabjous { private: char fab[20]; public: Frabjous(const char * s = C++) : fab(s) { } virtual void
Suppose you have the following definitions:
class Frabjous {
private:
char fab[20];
public:
Frabjous(const char * s = "C++") : fab(s) { }
virtual void tell() { cout << fab; }
};
class Gloam {
private:
int glip;
Frabjous fb;
public:
Gloam(int g = 0, const char * s = "C++");
Gloam(int g, const Frabjous & f);
void tell();
};
Given that the Gloam version of tell() should display the values of glip and fb,
provide definitions for the three Gloam methods.
Step by Step Solution
3.38 Rating (176 Votes )
There are 3 Steps involved in it
The three Gloam methods include i telling data the following tell met... View full answer
Get step-by-step solutions from verified subject matter experts
