Write a Rectangle class storing a width and a height. The constructor takes both. area returns width times height, and perimeter returns twice the width plus twice the height.
class Rectangle { Rectangle(int w, int h); int area(); int perimeter(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.