Page MenuHomec4science

sb.cpp
No OneTemporary

File Metadata

Created
Sat, Oct 12, 23:05
#include <iostream>
using namespace std;
class C{
int c;
};
template <class T> class A{
public:
virtual void foo(){cout<<"template"<<endl;}
};
class B:public A<C>{
public:
virtual void foo(){
A<C>::foo();
cout<<"B"<<endl;
}
};
int main(int argc, char *argv[]){
B b;
b.foo();
return 0;
}

Event Timeline