Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          constructors-point-rectangle/more-about-constructs/point.cc - Implementation of the Point class constructors.Lecture 4 - slide 7 : 40
Program 2

// Definition of constructors - nothing of particular interest.

#include <cmath>
#include <iostream>
#include "point.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}{
}