Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          templates/vers2-f14/point.h - A type parameterized variant of class Point - point.h.Lecture 5 - slide 33 : 40
Program 1

// point.h

template<typename C>class Point {
private: 
  C x, y;

public:
  Point(C, C);
  Point();
  C getx () const;
  C gety () const;
  Point<C>& move(C, C);
  double distance_to(Point);
};

template<class C>  std::ostream& operator<< (std::ostream&, const Point<C>&);