There are three main type of methods in C++ I read somewhere but I forgot where exactly and in which article did I read that. But it is something like Access methods, Modify methods and the third one.. I think it is managerial method. But not really sure. Can any one tell me what are those three methods with some explanation about it. If not, please do provide me a link from where I can learn more about them. I wish i could have bookmarked that article when I read that. I now really cant find any other place on the WWW which talks about these. Please help guys. :-|
Recommended Answers
Jump to PostWell, let me try to help if I can.
First of all consider a class like this:
class myClass { private: int data; public: myClass() {}; ~myClass() {}; int getData() {return data;} void setData(int newData) {data=newData;} void calculateRoot(int amount) {data=sqrt(amount);} };
An accessor method is used …
All 2 Replies
John A 1,896 Vampirical Lurker Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.