Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
DATA STRUCTURES NAME_ GL PHONE. NO INTERNER 3. class Distance To all the private: int feet: int inch; public: Distance (); //Constructor void getDist ();
DATA STRUCTURES NAME_ GL PHONE. NO INTERNER 3. class Distance To all the private: int feet: int inch; public: Distance (); //Constructor void getDist (); void showDist(); ??? addDist(?????); 1. Complete the function heading (prototype) for addDist in the class declaration where it has ????. 2. Write a complete code for addDist method to add two distance. 3. Write a complete calling statement to addDist from the main method
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started