I have these two funtions in my .h file. They both have the same name but arnt the same as shown below :-
If i was to call one in my .cpp, could it get confused with tthe two if i don't specify which one??Code:Square * getSquare(int x, int y); Square * getSquare(int index);
for example:-
i am assuming not, becuase the two arguments i give match the first function??Code:Square * s = board->getSquare(d1s->getX()+1, d1s->getY() +1); Square * o = board->getSquare(d1s->getX()+2, d1s->getY() +2);