Question: Q3. Consider the following class definitions: #include #include using namespace std; class Service { public: void print () const ; void set_val (float, int); float

 Q3. Consider the following class definitions: #include #include using namespace std;class Service { public: void print () const ; void set_val (float,int); float amount(); Service(); Service(float, int); private: float price; int no of

Q3. Consider the following class definitions: #include #include using namespace std; class Service { public: void print () const ; void set_val (float, int); float amount(); Service(); Service(float, int); private: float price; int no of days; int special(); }; class superService: public Service { public: void print () const; void set_val(float, int, float); int manipulate(); supersService(); superService(float, int, float); private: float coupon_value; /// ==== Service class function definitions ======= Service :: Service () price (0), no_of_days) {} Service:: Service(float a, int b) {price = a; no_of_days =b; 7// cout

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 Databases Questions!