I have a class
that i want to implement a plus operator such that it increases the fees paid variable by an amount specified in the parameter.Code:class Student { public: string StudentId; float feespaid; //plus operator here };
I tried research but everything is just confusing, can someone show me how i can implement the operator to do what i want...thx u...
i tried.. but dont seem to do anything.Code:operator+(feespaid a);




Reply With Quote