MCPcopy Create free account
hub / github.com/RPISEC/MBE / Rect

Class Rect

src/lecture/cpp/rect.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <cstdio>
3
4class Rect {
5 public:
6 Rect() : width(0), height(0) {}
7 int area() { return width*height; }
8 void set_vals(int w, int h);
9 private:
10 int width;
11 int height;
12};
13
14void
15Rect::set_vals(int w, int h)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected