#include <iostream>
using namespace std;
class Distance
{
public:
int feet, inch;
Distance(int f,int i)
{
this->feet=f;
this->inch=i;
}
void operator-()
{
feet--;
inch--;
cout<<"\nfeet and inches are(decrement) :";
cout<<feet;
cout<<"\t"<<inch;
}
};
int main() {
Distance d1(5,10);
-d1 ;
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: