rectangle_shape.cpp 161 B

123456789
  1. // rectangle_shape.cpp
  2. namespace ShapeImpl
  3. {
  4. double area(const Rectangle &rectangle)
  5. {
  6. return rectangle.width * rectangle.height;
  7. }
  8. } // namespace ShapeImpl