fork(3) download
  1. #include <string>
  2.  
  3. class BaseClass
  4. {
  5. public:
  6. virtual void Load(std::string msg);
  7. };
  8.  
  9. class DeriveClass : public BaseClass
  10. {
  11. public:
  12. DeriveClass();
  13. };
  14.  
  15. class Game
  16. {
  17. private:
  18. static DeriveClass c1;
  19. };
  20.  
  21. int main()
  22. {
  23. }
  24.  
  25. void BaseClass::Load(std::string msg) {
  26.  
  27. //some stuff here
  28. }
  29.  
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty