title: Calling a function on a instance of my object returns a blank in console when ran
body: <p>Stuck on a homework program where i need to create a class Rectangle2D. I'm testing out my code but i can't get my getter functions to return their values .Here are the .cpp .h and main files. When i run my program, the console returns a blank. I'm trying to return my getter functions to return the value of the default constructor. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "Rectangle2D.h"
  using namespace std;
  
  
  int main() {
      Rectangle2D rec1;
      rec1.getHeight();
      rec1.getWidth();
      rec1.getY();
      rec1.getX();
      return 0;
  }
  
  
  
  class Rectangle2D
  {
  private:
      double x;
      double y;
      double width;
      double height;
  
  public:
  
      Rectangle2D();
      Rectangle2D(double x, double y, double width, double height);
  
      double getX();
      double getY();
      double getWidth();
      double getHeight();
      double getArea();
      double getPerimeter() const;
      bool contains(double, double)const;
  };
  
  
  #include "Rectangle2D.h"
  #include &lt;iostream&gt;
  
  
  
  Rectangle2D::Rectangle2D() {
      x = 0.0;
      y = 0.0;
      width = 1.0;
      height = 1.0;
  }
  Rectangle2D::Rectangle2D(double newX, double newY, double newWidth, double newHeight) {
      x = newX;
      y = newY;
      width = newWidth;
      height = newHeight;
  }
  
  double Rectangle2D::getX() {
      return x;
  }
  double Rectangle2D::getY() {
      return y;
  }
  double Rectangle2D::getWidth() {
      return width;
  }
  double Rectangle2D::getHeight() {
      return height;
  }
  
  double Rectangle2D::getArea() {
      return width * height;
  }
  double Rectangle2D::getPerimeter()const {
      return (2 * width) + (2 * height);
  }
  bool Rectangle2D::contains(double findX, double findY) const {
      return (1 == 1);
  }
  </code></pre>