| constructors-point-rectangle/more-about-constructs/point1.cc - Implementation of the Point class constructors. | Lecture 4 - slide 7 : 40 Program 5 |
// Definition of constructors - nothing of particular interest.
#include <cmath>
#include <iostream>
#include "point1.h"
Point::Point(): Point{0.0, 0.0}{
}
Point::Point(double x, double y): x{x}, y{y}{
}
Point::Point(double x_coord): Point{x_coord, 0.0}{
}