Will the following program cause any problem during compiling and execution process?
- by user297850
Will the following program cause any problem during compiling and execution process?
class A{
public: virtual void foo(){}
};
class B:public A{};
int main(){
B b;
b.foo();
}