Link about "get"

Write your question here.
Der All!
Please, can someone send me a link where get / getX is good explained?
Many thanks!!!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

// point.cpp
#include <iostream>
#include "point.h"

using namespace std;

void point::init(int x1, int y1) {
  x = x1;
  y = y1;
}

int point::getX() {
  return x;
}

int point::getY() {
  return y;
}

void point::print() {
  cout << "(" << x << "," << y << ")" << endl;
}
HEre getX, getYm init and print is just member functions:
http://www.cplusplus.com/doc/tutorial/classes/
Hello!
Does it mean, they do just what I define them to do?
In other words, getX is just the name WE can choose nad give to the function?
Many thanks!!!
Topic archived. No new replies allowed.