In operator overloading why we use this strcture-> Means= [temp.a=a+ob.a]Here a example also display. complex operator+(complex ob) { complex t; t.a=a+ob.a; t.b=b+ob.b; return(t); }
ss
In operator overloading why we use this strcture-> Means= [temp.a=a+ob.a]
ReplyDeleteHere a example also display.
complex operator+(complex ob)
{
complex t;
t.a=a+ob.a;
t.b=b+ob.b;
return(t);
}