Assume class Child
is a derived class of the class Parent
. In a five file program, how would I specify in Child.h
that I want to call the constructor of Parent
? I don't think something like the following is legal inside the header:
Child(int Param, int ParamTwo) : Parent(Param);
In this situation, what should Child.cpp
's constructor syntax look like?