getdata() function

How and where do we use Getdata() function, i did not understand what is the purpose of the getdata() function.

can some one help me out?
if you are reffering to the get() method used to get the value of some data type, then its used mostly in object oriented programming, since its based on classes, and in classes you have private data members which can only be accesed by functions defined inside the class

for example you have
1
2
3
4
5
6
class BankAccount
{
private:
int ID;
string name;
}


the only way to access the private members ID or name is by making some get() functions for those variables for example

1
2
3
public:
int getId();
string getName();
That function is not a standard C or C++ function. From the vagueness of your question it sounds like you're talking about a function that you or someone has written themselves. You need to describe your situation and maybe post some code too so we can help you further.
Topic archived. No new replies allowed.