i want to inhert atemplate class
example:
template<class t>
class list
{
protected:
t data;
list* nextptr;
public:
void push()=0;
void pop()=0;
}
now i want to make a new class called stack and this class inherit the list public
is this true?
class stack:public list
{
.........
}
int main()
{
also in main when i create object of stack what i do?
stack<int> ob;
is this true?
please any one help me