Question: For this assignment you are expected to submit the following two files: 1. . h 2. . Implement a class named Trip. Separate declaration from
For this assignment you are expected to submit the following two files:
1. . h
2. .
Implement a class named Trip. Separate declaration from implementation (i.e. Header and CPP files). Class
has the following members:
1a. A struct called and has two members: of type String
of type
1b. Private member Variables:
: type double
: type string
: a pointer of type
: a pointer of type
1c.Methods:
A default constructor which initializes all numeric members to 1, strings to "", and pointers to
Nondefault Constructor:
o 6 parameters: , , , , ,
o Initialize all class private members
Destructor to deallocate the dynamic memory of
Accessors and mutators for
Accessors for
Mutators for such that the mutator receives two parameters and
initializes the pointers .
Please have it run for c++ visual studio. Thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
