mul.h 186 B

1234567891011121314151617
  1. #pragma once
  2. class TMul {
  3. public:
  4. TMul(int x, int y)
  5. : X(x)
  6. , Y(y)
  7. {}
  8. int GetValue() const {
  9. return X * Y;
  10. }
  11. private:
  12. const int X;
  13. const int Y;
  14. };