class Dot { ... function _add(otherdot) { return ::Dot(x+otherdot.x, y+otherdot.y); } }