Question: QUESTION 5 (15) Consider the class specification Interface) for the class Insurance poi.cy below class Insurance policy public Insurance policy). Insurance Polacy (int PNE, string

 QUESTION 5 (15) Consider the class specification Interface) for the class

QUESTION 5 (15) Consider the class specification Interface) for the class Insurance poi.cy below class Insurance policy public Insurance policy). Insurance Polacy (int PNE, string pricider, couple aRace). void snow Policy ostrein & out) const, void set Policytant pne, string pholder, double aRate). ant get_pe(const. string get pilolder() const. douple get_aRate () const. Drivate int policyNr. string policyholdet. doable annual Race. 51 Define a new class Car Insurance that inherits the functionality of the class Insurance policy The class car insurance has an additional member vanable. excess. Class TURN OVER Insurance Polacy also has member functions, get_excess() and set excess to return member vanable excess and update member vanable excess respectively The class Car Insurance should overnde function showPolicy() in order to display the member vanables of Carinsurance and function set Policy) in order to update the member variables of Carinsurance Provide only the interface of class Car Insurance in terms of a header ile The header file should contain compiler directives to prevent multiple definitions Assume that the interface of class Insurance policy contained in an interface file called Insurance policy (8) 52 Implement the overloaded constructor for the class carinsurance by invoking the base class constructor (3) 53 Consider the following implementation void CarInsurance set Policy (int pNE, string pholder, double arate, double eValue policy - PNP policyholder - pholder, annual Rate - arate. excess - Value. 1 Explain why set Policy() is not a legal definition in the derived Car Insurance How should this problem be resolved? 54 From your implementation of class Car Insurance give an example of (2) FI

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!