Advertisement
Guest User

Untitled

a guest
May 4th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. class MyClass : public ExternalBase // This class is from external framework and framework requires it to derive from this class.
  2. {
  3. int doSomePrivateThing(int );
  4. public:
  5.  
  6. virtual int DoSomething(int );
  7. virtual ~MyClass();
  8. }
  9.  
  10. int MyClass::doSomePrivateThing(int )
  11. {
  12. // do some private task
  13. }
  14.  
  15. int MyClass::DoSomething(int n)
  16. {
  17. // Do MyClass Specific task
  18. int k = doSomePrivateThing(n);
  19. return ExternalBase::DoSomething(k); // This function depends on external system resources.
  20. // Probably try to communicate with remote server
  21. // or attempt access Storage or Display device etc.
  22. }
  23.  
  24. MyClass::~MyClass()
  25. {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement