Answer to Question #15864 in C++ for vinod

Question #15864
explain the method of adding member functions in a class?
1
Expert's answer
2012-10-08T12:09:25-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS