Hello, im starting out in c++ and i want to know why this code prints out base


struct base
{
virtual void foo(void){
cout<<"base"<<endl;
}
}
struct derived : base(void)