



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Task 4.1 Write a C++ program to overload the unary operator “- -” #include
Task 4.2 Write a C++ program to overload arithmetic assignment operator “=” #include
Task 4.3 Write a C++ program to overload relational operator “<” #include
cout<<endl; } }; int main() { system("color f0"); Displacement d1(200,"d1"); // Displacement object Displacement d2(30,"d2"); // Displacement object d1>d2; d1<d2; return 0; }