Will the following program cause any problem during compiling and execution process?

Posted by user297850 on Stack Overflow See other posts from Stack Overflow or by user297850
Published on 2010-03-25T00:53:33Z Indexed on 2010/03/25 1:03 UTC
Read the original article Hit count: 403

Filed under:
|
|

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();
}

© Stack Overflow or respective owner

Related posts about interview-questions

Related posts about c++