// Definition of members in template class Point. Notice the use of static members from the type P. #include #include #include "point.h" templatePoint

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

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

::getx () const{ return x; } template double Point

::gety () const{ return y; } template double Point

::distance_to(Point

p){ return P::distance_to(*this,p); } template bool Point

::less_than(const Point

& p){ return P::less_than(*this,p); } template std::ostream& operator<<(std::ostream& s, const Point

& p){ return s << "(" << p.getx() << "," << p.gety() << ")" ; }