Question: 08) Consider the following class declaration and answer the questions that follow. This class'd separate from its implementation (i.e. Header and CPP files) class Trip
08) Consider the following class declaration and answer the questions that follow. This class'd separate from its implementation (i.e. Header and CPP files) class Trip string driver: double distance Tript Trip(string, double, int -Trip(): string getDriver( double getDistance(; double getFair; A) (5p) Write the implementation of the non-default constructor and initialize the accordingly. Note that all parameters are pointer parameters but not all mem B) (5p) Write the implementation of the accessor function for the member variable driver Nol d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
