Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          constructors-point-rectangle/boiled-down-for-notes/point.cc - Implementation of the Point class constructors.Lecture 4 - slide 6 : 41
Program 2

#include <cmath>
#include <iostream>
#include "point.h"


Point::Point(): x(0.0), y(0.0){
}

Point::Point(double x_coord): x(x_coord), y(0.0){
}

Point::Point(double x_coord, double y_coord): x(x_coord), y(y_coord){
}