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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!