#include "UncopyablePoint2011.h" #include #include using std::cout; using std::endl; UncopyablePoint::UncopyablePoint(int x, int y) : x_(x), y_(y) { cout << "Calling 2-arg constructor" << endl; } void UncopyablePoint::CopyFrom(const UncopyablePoint ©me) { x_ = copyme.x_; y_ = copyme.y_; } double UncopyablePoint::Distance(const UncopyablePoint &p) const { double distance = (x_ - p.x_) * (x_ - p.x_); distance += (y_ - p.y_) * (y_ - p.y_); return sqrt(distance); } void UncopyablePoint::SetLocation(int x, int y) { x_ = x; y_ = y; }