I saw the following code in a book and am wondering what is going on:
class shiftedList{
int* array;
int offset, size;
public:
shiftedList(int sz) : offset(0), size(sz){
array = new int[size];
}
}
what is going on with offset(0) and size(sz) in the constructor of the class?
Thanks for the help.