My professor wrote some code on the board today that I do not understand. It seems to be a derived class constructor calling a base class constructor, but I am not sure. Here goes:
class Base{
int x, y;
public:
Base(int,int);
};
class Derived: public Base{
int z;
public:
//what does the colon and the code following it do here?
Derived(int a):Base(a, a+5){
z = a;
}
};