fork download
  1. #include <iostream>
  2.  
  3.  
  4. class Addition
  5. {
  6. private:
  7. int x;
  8. int y;
  9. public:
  10. Addition(int a, int b)
  11. {
  12. x = a;
  13. y = b;
  14. };
  15. int AddtwoValues()
  16. {
  17. return (x + y);
  18. }
  19. };
  20.  
  21. int main()
  22. {
  23. return 0;
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty