Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          templates/vers2/point.h - A type parameterized variant of class Point - point.h.Lecture 6 - slide 4 : 46
Program 1

template<class 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>&);