Program to overload assignment operator
#include<iostrema.h> class number { int x, y; public: number() { x = 0; y = 0; } number(int a, int b) { x = a; y = b; } void display() { cout<<“\n x: “<<x; cout<<“\n y: “<<y<<endl; } void operator = (number n1) { x = n1.x; y = n1.y; } }; int main() […]









