Question #15864

explain the method of adding member functions in a class?

Expert's answer

Here is an example of adding member function in a class:


class x
{
public:
int add(){ // inline member function add
& return a+b+c;
}
private:
int a,b,c;
};

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS