T
Thomas Kowalski
Hi everyone,
is there a way to enforce that every class that inherit from BASE have
to implement a given constructor?
Example:
class Base {
virtual Base (int,int) = 0;
}
class INHERIT : public Base {
virtual INHERIT(int, int);
}
guess the only way is to have something like a protected init method
that should be called in the constructor??
Regards,
T.Kowalski
is there a way to enforce that every class that inherit from BASE have
to implement a given constructor?
Example:
class Base {
virtual Base (int,int) = 0;
}
class INHERIT : public Base {
virtual INHERIT(int, int);
}
guess the only way is to have something like a protected init method
that should be called in the constructor??
Regards,
T.Kowalski