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