oop

Can anyone please help me with this program ?
The Question is:
"Write an oop program that adds two distances(a distance should have parameters of kilometer and meter).Make constructor to initiliaze the distance with 0 km and 0 m and overload the constructor by assigning some value to the 2nd distance. Make a getvalue() to input the 1st distance and another function sum and display the result of summation."
Can anyone please help me with this program ?

afraid not, you have to show some effort first or ask specific questions what exactly is unclear
this question has also been raised on this very forum in this or at least similar form, probably on other forums as well. i suggest you also do a thorough search first
Topic archived. No new replies allowed.