Code in .cpp file [closed]

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 of Shapes and should as such be prefixed with Shapes::.
  • You aren’t using the member initializer list.
  • Your indentation is inconsistent.

Leave a Comment