Click to See Complete Forum and Search --> : CArray


KRajan
May 24th, 1999, 01:59 AM
Hai gurus

Can i derive a class from CArray?
I tried but some problems are coming while compiling. i think it is because of CArray is a template class, right?

if that is the problem how can i derive a child class from CArray?




Thankx And Regards....

Rajan

ric
May 27th, 1999, 04:26 AM
When you cannot derive from it you can contain CArray as a member of your new class.

sally
May 27th, 1999, 06:54 AM
class CArrayInteger : class CArray<int, &int>
{
public:
CArrayInteger();
~CArrayInteger();
};




Doesn't this work?

Sally

Sally
May 27th, 1999, 06:54 AM
class CArrayInteger : class CArray<int, &int>
{
public:
CArrayInteger();
~CArrayInteger();
};




Doesn't this work?

Sally