X
Xin Wang
In ansi c++, you can do something like
template <class T>
class vector<T>
{
protected:
int a;
int b;
}
class boundedVector<T> : public vector<T>
{
protected:
int c;
}
And you can use the fields of vector as if they are defined for
boundedVector, but these are no longer allowed by ansi, right?
Xin Wang
template <class T>
class vector<T>
{
protected:
int a;
int b;
}
class boundedVector<T> : public vector<T>
{
protected:
int c;
}
And you can use the fields of vector as if they are defined for
boundedVector, but these are no longer allowed by ansi, right?
Xin Wang