fork(1) download
  1. class Base {};
  2.  
  3. class Derived : public Base {};
  4.  
  5. int main()
  6. {
  7. Derived* pDerived = new Derived();
  8. Base* pBase = static_cast<Base*>(pDerived);
  9. return 0;
  10. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty