Question: please add comments. Create a distance class with the following class Please submit your code as distance.cpp to the moodle link (include your class specification

please add comments. Create a distance class with the following class
Please submit your code as distance.cpp to the moodle link (include your class specification and driver in the same file Write a program in C++ that implements the class described in the UML below. Distance -feet: int -inch: int Distance() + getDist():void + showDist():void + addDist(d2: Distance) Distance +subDist (d2: Distance)Distance please format your output exactly as shown below: Enter Distancel : Enter Value of feets 1 Enter value of inches 6 Enter Distance2 Enter Value of feets 2 Enter value of inches 10 Distancel: Reet 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
