brintos

brintos / llvm-project-archived public Read only

0
0
Text · 250 B · a2b253b Raw
12 lines · cpp
1#include "Rectangle.h"2 3Rectangle::Rectangle(double width, double height)4    : width_(width), height_(height) {}5 6double Rectangle::area() const {7  return width_ * height_;8}9 10double Rectangle::perimeter() const {11  return 2 * (width_ + height_);12}