Things wrong with your code:
- You’re not using the
area
variable in any way. - One of your
}
is in the wrong place. - Your
calculateArea
is probably a member function ofShapes
and should as such be prefixed withShapes::
. - You aren’t using the member initializer list.
- Your indentation is inconsistent.