I have a question regarding pointers to member functions, this is the first time that I have come across them and I have no idea how to write the function for it.
This is the function prototype: const char* getData() const;
I understand what it is and how to code the function I am just unclear about how to write the function definition so far all I can come up with on the internet is either too complex or doesnot answer the question.
This is what I have tried
char* Account::getData() const{
return data;
}