Question: I need a QUICK ANSWER PLEASE :( (40)2- Write the program code for overloading the operator for class myclass which is declared below. Overload the

I need a QUICK ANSWER PLEASE :(
(40)2- Write the program code for overloading the operator for class myclass which is declared below. Overload the -- operator for both postfix decrement and prefix decrement. (note: you must decrement every data member of myclass class) declerations of the prefix and postfix decrement operaters are given below. class myclass private double a,b,c,d; public://constructor myclass (double u,double s, double v,double y) (a=u;b=x;c=v;d=y;} //constructor myclass operator--();// declaration of prefix decrement myclass operator--(int notused);// declaration of postfix dec. }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
