Question: Create two classes DM and DB to store the value of distances. DM stores distances in meter and centimeters and DB in feet and inches

Create two classes DM and DB to store the value of distances. DM stores distances in meter and centimeters and DB in feet and inches write a program that can read values for the class objects and add one object of DM with an other object of DB

Hint: Use friend function

write complete program in c++

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!