class Rectangle {
private:
double w;
double h;
public:
Rectangle(double w_, double h_) {
w = w_;
h = h_;
}
double area(void) {
return w * h;
}
double perimiter(void) {
return 2 * (w + h);
}
};
Rectangle r = Rectangle(5, 4);
r.area();
(double) 20.0000
r.methodmissing();
input_line_8:2:4: error: no member named 'methodmissing' in 'Rectangle' r.methodmissing(); ~ ^